Skip to content

Commit

Permalink
Snake: Added GCommonActions
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGrieb authored and awesomekling committed Sep 5, 2019
1 parent aab28ea commit 3261ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Games/Snake/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}));

Expand Down

0 comments on commit 3261ffb

Please sign in to comment.