add clean session action and menu item

This commit is contained in:
yggverse 2024-09-11 08:00:47 +03:00
parent 6cf3977a9f
commit ab6f0cca3a
7 changed files with 27 additions and 0 deletions

View file

@ -22,6 +22,14 @@ Browser::Browser(
}
);
const auto ACTION__CLEAN = add_action(
"clean",
[this]
{
browserMain->clean();
}
);
const auto ACTION__RESTORE = add_action(
"restore",
[this]
@ -194,6 +202,7 @@ Browser::Browser(
browserHeader = Gtk::make_managed<browser::Header>(
ACTION__DEBUG,
ACTION__QUIT,
ACTION__CLEAN,
ACTION__RESTORE,
ACTION__SAVE,
ACTION__MAIN_TAB_APPEND,