diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-07 20:36:28 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-07 20:37:28 +0100 |
commit | c989550c098dbfee41ae613c4c168df5e8dae330 (patch) | |
tree | e16089987389941c480930330079fc72f96953bb /Userland/Applications/Help | |
parent | 83d980ab9e4ae9f5d682177c6cf31b38525c4629 (diff) | |
download | serenity-c989550c098dbfee41ae613c4c168df5e8dae330.zip |
Help: Add "Help" menu and move the about action there
Diffstat (limited to 'Userland/Applications/Help')
-rw-r--r-- | Userland/Applications/Help/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Applications/Help/main.cpp b/Userland/Applications/Help/main.cpp index 6c96de4059..9c046061fd 100644 --- a/Userland/Applications/Help/main.cpp +++ b/Userland/Applications/Help/main.cpp @@ -257,8 +257,6 @@ int main(int argc, char* argv[]) auto menubar = GUI::Menubar::construct(); auto& file_menu = menubar->add_menu("&File"); - file_menu.add_action(GUI::CommonActions::make_about_action("Help", app_icon, window)); - file_menu.add_separator(); file_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { GUI::Application::the()->quit(); })); @@ -268,6 +266,9 @@ int main(int argc, char* argv[]) go_menu.add_action(*go_forward_action); go_menu.add_action(*go_home_action); + auto& help_menu = menubar->add_menu("&Help"); + help_menu.add_action(GUI::CommonActions::make_about_action("Help", app_icon, window)); + window->set_menubar(move(menubar)); if (start_page) { |