Terminal: Added GCommonActions

This commit is contained in:
rhin123 2019-09-04 16:33:04 -05:00 committed by Andreas Kling
commit 9f8a2af921
Notes: sideshowbarker 2024-07-19 12:17:16 +09:00

View file

@ -187,7 +187,7 @@ int main(int argc, char** argv)
settings_window->move_to_front(); settings_window->move_to_front();
})); }));
app_menu->add_separator(); app_menu->add_separator();
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) { app_menu->add_action(GCommonActions::make_quit_action([] {
dbgprintf("Terminal: Quit menu activated!\n"); dbgprintf("Terminal: Quit menu activated!\n");
GApplication::the().quit(0); GApplication::the().quit(0);
})); }));