SystemMonitor: Added GCommonActions

This commit is contained in:
rhin123 2019-09-04 16:32:51 -05:00 committed by Andreas Kling
commit 1f666abcd2
Notes: sideshowbarker 2024-07-19 12:17:23 +09:00

View file

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