Snake: Added GCommonActions

This commit is contained in:
rhin123 2019-09-04 16:33:41 -05:00 committed by Andreas Kling
parent aab28ea9c0
commit 3261ffb2fd
Notes: sideshowbarker 2024-07-19 12:16:56 +09:00

View file

@ -28,7 +28,7 @@ int main(int argc, char** argv)
app_menu->add_action(GAction::create("New game", { Mod_None, Key_F2 }, [&](const GAction&) {
game->reset();
}));
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) {
app_menu->add_action(GCommonActions::make_quit_action([] {
GApplication::the().quit(0);
}));