From fbc3b8e3c8f10c744779b43e9e30d89b999a57e2 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Mon, 17 Aug 2020 13:26:38 +0200 Subject: Solitaire: Rename "Restart game" menu item to "New game" Also adding a shortcut (F2) to make it consistent with other games. --- Games/Solitaire/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); })); -- cgit v1.2.3