diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-04-16 11:56:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-19 07:59:54 +0200 |
commit | 969543a847c7792cb5ebe967c44b744bc24fb2cb (patch) | |
tree | 1c5ee0e5040655c0783bc4940d158af192e5c755 /Userland/Games/BrickGame | |
parent | 60a338758ce1b8bcf09f00cc9ba4694348292a91 (diff) | |
download | serenity-969543a847c7792cb5ebe967c44b744bc24fb2cb.zip |
LibGUI+Userland: Make Window::*add_menu take name using new string
Diffstat (limited to 'Userland/Games/BrickGame')
-rw-r--r-- | Userland/Games/BrickGame/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/BrickGame/main.cpp b/Userland/Games/BrickGame/main.cpp index ad28031319..a7eaae25c9 100644 --- a/Userland/Games/BrickGame/main.cpp +++ b/Userland/Games/BrickGame/main.cpp @@ -51,7 +51,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto game = TRY(window->set_main_widget<BrickGame>(app_name)); - auto game_menu = TRY(window->try_add_menu("&Game")); + auto game_menu = TRY(window->try_add_menu("&Game"_short_string)); TRY(game_menu->try_add_action(GUI::Action::create("&New Game", { Mod_None, Key_F2 }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"sv)), [&](auto&) { game->reset(); @@ -73,7 +73,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) GUI::Application::the()->quit(); }))); - auto help_menu = TRY(window->try_add_menu("&Help")); + auto help_menu = TRY(window->try_add_menu("&Help"_short_string)); TRY(help_menu->try_add_action(GUI::CommonActions::make_command_palette_action(window))); TRY(help_menu->try_add_action(GUI::CommonActions::make_help_action([&man_file](auto&) { Desktop::Launcher::open(URL::create_with_file_scheme(man_file), "/bin/Help"); |