mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:07:34 +00:00
Solitaire: Rename "Restart game" menu item to "New game"
Also adding a shortcut (F2) to make it consistent with other games.
This commit is contained in:
parent
e3d1ea34ff
commit
fbc3b8e3c8
1 changed files with 3 additions and 1 deletions
|
@ -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(); }));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue