diff options
author | rhin123 <ryanrhin@gmail.com> | 2019-09-04 16:33:41 -0500 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-05 09:40:54 +0200 |
commit | 3261ffb2fd466914f1d0d8891d7d12cb1e875edb (patch) | |
tree | 76a348e7ef422ecbd37670658c4a1e2ab5023d16 /Games/Snake/main.cpp | |
parent | aab28ea9c055cdd05844e7432f30218a031755f3 (diff) | |
download | serenity-3261ffb2fd466914f1d0d8891d7d12cb1e875edb.zip |
Snake: Added GCommonActions
Diffstat (limited to 'Games/Snake/main.cpp')
-rw-r--r-- | Games/Snake/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp index 7e32152019..f38aa35c94 100644 --- a/Games/Snake/main.cpp +++ b/Games/Snake/main.cpp @@ -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); })); |