Skip to content

Commit

Permalink
Solitaire: Rename "Restart game" menu item to "New game"
Browse files Browse the repository at this point in the history
Also adding a shortcut (F2) to make it consistent with other games.
  • Loading branch information
xTibor authored and awesomekling committed Aug 17, 2020
1 parent e3d1ea3 commit fbc3b8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Games/Solitaire/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }));

Expand Down

0 comments on commit fbc3b8e

Please sign in to comment.