Browse Source

update menu item sort order

CPP-GTK4
yggverse 3 months ago
parent
commit
53bd6e8fbb
  1. 42
      src/app/browser/header/menu.cpp

42
src/app/browser/header/menu.cpp

@ -22,6 +22,27 @@ Menu::Menu(
// Init components @TODO make builder // Init components @TODO make builder
const auto MENU__MAIN = Gio::Menu::create(); const auto MENU__MAIN = Gio::Menu::create();
const auto MENU__MAIN_SESSION = Gio::Menu::create();
MENU__MAIN_SESSION->append(
_("Restore"),
get_action_detailed_name(
ACTION__RESTORE
)
);
MENU__MAIN_SESSION->append(
_("Save"),
get_action_detailed_name(
ACTION__SAVE
)
);
MENU__MAIN->append_submenu(
_("Session"),
MENU__MAIN_SESSION
);
const auto MENU__MAIN_TAB = Gio::Menu::create(); const auto MENU__MAIN_TAB = Gio::Menu::create();
MENU__MAIN_TAB->append( MENU__MAIN_TAB->append(
@ -115,27 +136,6 @@ Menu::Menu(
MENU__MAIN_TAB MENU__MAIN_TAB
); );
const auto MENU__MAIN_SESSION = Gio::Menu::create();
MENU__MAIN_SESSION->append(
_("Restore"),
get_action_detailed_name(
ACTION__RESTORE
)
);
MENU__MAIN_SESSION->append(
_("Save"),
get_action_detailed_name(
ACTION__SAVE
)
);
MENU__MAIN->append_submenu(
_("Session"),
MENU__MAIN_SESSION
);
const auto MENU__MAIN_TOOLS = Gio::Menu::create(); const auto MENU__MAIN_TOOLS = Gio::Menu::create();
MENU__MAIN_TOOLS->append( MENU__MAIN_TOOLS->append(

Loading…
Cancel
Save