summaryrefslogtreecommitdiff
path: root/Userland/Games/MasterWord/main.cpp
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/MasterWord/main.cpp
parent60a338758ce1b8bcf09f00cc9ba4694348292a91 (diff)
downloadserenity-969543a847c7792cb5ebe967c44b744bc24fb2cb.zip
LibGUI+Userland: Make Window::*add_menu take name using new string
Diffstat (limited to 'Userland/Games/MasterWord/main.cpp')
-rw-r--r--Userland/Games/MasterWord/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Games/MasterWord/main.cpp b/Userland/Games/MasterWord/main.cpp
index 4a76e1bc5f..17eb9415cc 100644
--- a/Userland/Games/MasterWord/main.cpp
+++ b/Userland/Games/MasterWord/main.cpp
@@ -60,7 +60,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_focused_widget(&game);
- 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 }, [&](auto&) {
game.reset();
@@ -71,7 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
GUI::Application::the()->quit();
})));
- auto settings_menu = TRY(window->try_add_menu("&Settings"));
+ auto settings_menu = TRY(window->try_add_menu(TRY("&Settings"_string)));
TRY(settings_menu->try_add_action(GUI::Action::create("Set &Word Length...", [&](auto&) {
auto word_length = Config::read_i32("MasterWord"sv, ""sv, "word_length"sv, 5);
@@ -98,7 +98,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
toggle_check_guesses->set_checked(game.is_checking_guesses());
TRY(settings_menu->try_add_action(toggle_check_guesses));
- auto theme_menu = TRY(window->try_add_menu("&Theme"));
+ auto theme_menu = TRY(window->try_add_menu("&Theme"_short_string));
auto system_theme_action = GUI::Action::create("&System", [&](auto&) {
game.set_use_system_theme(true);
Config::write_bool("MasterWord"sv, ""sv, "use_system_theme"sv, true);
@@ -121,7 +121,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
theme_actions.add_action(system_theme_action);
theme_actions.add_action(wordle_theme_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/MasterWord.md"), "/bin/Help");