summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTibor Nagy <xnagytibor@gmail.com>2020-08-17 13:26:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-17 17:39:56 +0200
commitfbc3b8e3c8f10c744779b43e9e30d89b999a57e2 (patch)
treeb7c7fb33ce516ebeb17025dbcfc65e68455888f0
parente3d1ea34ff3ab38acff29ea589844fbf55595daf (diff)
downloadserenity-fbc3b8e3c8f10c744779b43e9e30d89b999a57e2.zip
Solitaire: Rename "Restart game" menu item to "New game"
Also adding a shortcut (F2) to make it consistent with other games.
-rw-r--r--Games/Solitaire/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Games/Solitaire/main.cpp b/Games/Solitaire/main.cpp
index 8a5ac75a82..a430f606ef 100644
--- a/Games/Solitaire/main.cpp
+++ b/Games/Solitaire/main.cpp
@@ -54,7 +54,9 @@ int main(int argc, char** argv)
auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("Solitaire");
- app_menu.add_action(GUI::Action::create("Restart game", [&](auto&) { widget->setup(); }));
+ app_menu.add_action(GUI::Action::create("New game", { Mod_None, Key_F2 }, [&](auto&) {
+ widget->setup();
+ }));
app_menu.add_separator();
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));