Merge pull request #450 from pop-os/new-folder
menus: Show new folder option before new file option
This commit is contained in:
commit
44ff7eb1ad
1 changed files with 2 additions and 2 deletions
|
|
@ -151,8 +151,8 @@ pub fn context_menu<'a>(
|
||||||
} else {
|
} else {
|
||||||
//TODO: need better designs for menu with no selection
|
//TODO: need better designs for menu with no selection
|
||||||
//TODO: have things like properties but they apply to the folder?
|
//TODO: have things like properties but they apply to the folder?
|
||||||
children.push(menu_item(fl!("new-file"), Action::NewFile).into());
|
|
||||||
children.push(menu_item(fl!("new-folder"), Action::NewFolder).into());
|
children.push(menu_item(fl!("new-folder"), Action::NewFolder).into());
|
||||||
|
children.push(menu_item(fl!("new-file"), Action::NewFile).into());
|
||||||
children.push(menu_item(fl!("open-in-terminal"), Action::OpenTerminal).into());
|
children.push(menu_item(fl!("open-in-terminal"), Action::OpenTerminal).into());
|
||||||
children.push(container(horizontal_rule(1)).padding([0, 8]).into());
|
children.push(container(horizontal_rule(1)).padding([0, 8]).into());
|
||||||
children.push(menu_item(fl!("select-all"), Action::SelectAll).into());
|
children.push(menu_item(fl!("select-all"), Action::SelectAll).into());
|
||||||
|
|
@ -215,8 +215,8 @@ pub fn menu_bar<'a>(
|
||||||
vec![
|
vec![
|
||||||
menu::Item::Button(fl!("new-tab"), Action::TabNew),
|
menu::Item::Button(fl!("new-tab"), Action::TabNew),
|
||||||
menu::Item::Button(fl!("new-window"), Action::WindowNew),
|
menu::Item::Button(fl!("new-window"), Action::WindowNew),
|
||||||
menu::Item::Button(fl!("new-file"), Action::NewFile),
|
|
||||||
menu::Item::Button(fl!("new-folder"), Action::NewFolder),
|
menu::Item::Button(fl!("new-folder"), Action::NewFolder),
|
||||||
|
menu::Item::Button(fl!("new-file"), Action::NewFile),
|
||||||
menu::Item::Button(fl!("open"), Action::Open),
|
menu::Item::Button(fl!("open"), Action::Open),
|
||||||
menu::Item::Button(fl!("open-with"), Action::OpenWith),
|
menu::Item::Button(fl!("open-with"), Action::OpenWith),
|
||||||
menu::Item::Divider,
|
menu::Item::Divider,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue