diff options
author | Tibor Nagy <xnagytibor@gmail.com> | 2020-08-17 13:26:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 17:39:56 +0200 |
commit | fbc3b8e3c8f10c744779b43e9e30d89b999a57e2 (patch) | |
tree | b7c7fb33ce516ebeb17025dbcfc65e68455888f0 | |
parent | e3d1ea34ff3ab38acff29ea589844fbf55595daf (diff) | |
download | serenity-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.cpp | 4 |
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(); })); |