1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

PaintBrush: Added GCommonActions

This commit is contained in:
rhin123 2019-09-04 16:31:47 -05:00 committed by Andreas Kling
parent 7df4cfe606
commit a538968cc2

View file

@ -37,7 +37,7 @@ int main(int argc, char** argv)
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("PaintBrush");
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);
return;
}));