summaryrefslogtreecommitdiff
path: root/Userland/Games/Minesweeper
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-04-16 11:56:01 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-19 07:59:54 +0200
commit969543a847c7792cb5ebe967c44b744bc24fb2cb (patch)
tree1c5ee0e5040655c0783bc4940d158af192e5c755 /Userland/Games/Minesweeper
parent60a338758ce1b8bcf09f00cc9ba4694348292a91 (diff)
downloadserenity-969543a847c7792cb5ebe967c44b744bc24fb2cb.zip
LibGUI+Userland: Make Window::*add_menu take name using new string
Diffstat (limited to 'Userland/Games/Minesweeper')
-rw-r--r--Userland/Games/Minesweeper/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp
index f45d46beb0..2f7f1b6a48 100644
--- a/Userland/Games/Minesweeper/main.cpp
+++ b/Userland/Games/Minesweeper/main.cpp
@@ -58,7 +58,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto field = TRY(Field::create(flag_label, time_label, face_button));
TRY(widget->try_add_child(field));
- 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&) {
field->reset();
@@ -78,7 +78,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
GUI::Application::the()->quit();
})));
- auto difficulty_menu = TRY(window->try_add_menu("&Difficulty"));
+ auto difficulty_menu = TRY(window->try_add_menu(TRY("&Difficulty"_string)));
GUI::ActionGroup difficulty_actions;
difficulty_actions.set_exclusive(true);
@@ -118,7 +118,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(difficulty_menu->try_add_action(action));
difficulty_actions.add_action(action);
- 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([](auto&) {
Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man6/Minesweeper.md"), "/bin/Help");