mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Snake: Added GCommonActions
This commit is contained in:
parent
aab28ea9c0
commit
3261ffb2fd
Notes:
sideshowbarker
2024-07-19 12:16:56 +09:00
Author: https://github.com/RyanGrieb Commit: https://github.com/SerenityOS/serenity/commit/3261ffb2fd4 Pull-request: https://github.com/SerenityOS/serenity/pull/519
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue