1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

IRCCient: Added GCommonActions

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

View file

@ -124,7 +124,7 @@ void IRCAppWindow::setup_menus()
{
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("IRC Client");
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");
GApplication::the().quit(0);
return;