mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:37:45 +00:00
Solitaire: Rearrange Help Menu
Rearrange the Help menu actions so they're in the same order as other application's Help menus.
This commit is contained in:
parent
73d4b067d4
commit
2767fa78f8
1 changed files with 1 additions and 2 deletions
|
@ -222,11 +222,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
||||||
auto help_menu = window->add_menu("&Help"_string);
|
auto help_menu = window->add_menu("&Help"_string);
|
||||||
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));
|
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));
|
||||||
help_menu->add_action(GUI::CommonActions::make_about_action("Solitaire"_string, app_icon, window));
|
|
||||||
|
|
||||||
help_menu->add_action(GUI::CommonActions::make_help_action([&man_file](auto&) {
|
help_menu->add_action(GUI::CommonActions::make_help_action([&man_file](auto&) {
|
||||||
Desktop::Launcher::open(URL::create_with_file_scheme(man_file), "/bin/Help");
|
Desktop::Launcher::open(URL::create_with_file_scheme(man_file), "/bin/Help");
|
||||||
}));
|
}));
|
||||||
|
help_menu->add_action(GUI::CommonActions::make_about_action("Solitaire"_string, app_icon, window));
|
||||||
|
|
||||||
window->set_resizable(false);
|
window->set_resizable(false);
|
||||||
window->resize(Solitaire::Game::width, Solitaire::Game::height + statusbar.max_height().as_int());
|
window->resize(Solitaire::Game::width, Solitaire::Game::height + statusbar.max_height().as_int());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue