Skip to content

Commit

Permalink
Merge pull request #210 from utiasASRL/feature_improve_graph_list
Browse files Browse the repository at this point in the history
Sort Pose Graphs
  • Loading branch information
lisusdaniil committed Mar 25, 2024
2 parents d95f73f + 305efec commit d9eea8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ class StartMenu extends React.Component {constructor(props) {
/>
<div
style={{
width: "25%",
width: "30%",
marginTop: "8%",
marginBottom: "5%",
position: 'relative',
left: "55%",
left: "50%",
}}
>
<Card
Expand Down Expand Up @@ -149,12 +149,12 @@ class StartMenu extends React.Component {constructor(props) {
<Tooltip title={item} placement="left">
<Button
sx={{
justifyContent: "flex-end",
justifyContent: "flex-start",
overflow: 'hidden',
whiteSpace: 'nowrap',
}}
disableElevation={true}
endIcon={<FolderIcon/>}
startIcon={<FolderIcon/>}
onClick={this.setGraphDataDir.bind(this, item)}
>
{item}
Expand Down
2 changes: 1 addition & 1 deletion main/src/vtr_navigation/vtr_navigation/vtr_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def get_available_subdirs(dir_path=DEFAULT_DIR):
next_level_subdirs = get_available_subdirs(osp.join(dir_path, subdir))
available_subdirs.extend(next_level_subdirs)

return available_subdirs
return sorted(available_subdirs, key=os.path.getmtime, reverse=True)


0 comments on commit d9eea8f

Please sign in to comment.