mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/cubiclove
Commit: 2767fa78f8
Pull-request: https://github.com/SerenityOS/serenity/pull/21081
Reviewed-by: https://github.com/ADKaster
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);
|
||||
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&) {
|
||||
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->resize(Solitaire::Game::width, Solitaire::Game::height + statusbar.max_height().as_int());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue