mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:07:34 +00:00
Help: Add "Help" menu and move the about action there
This commit is contained in:
parent
83d980ab9e
commit
c989550c09
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue