Explorar o código

IRCCient: Added GCommonActions

rhin123 %!s(int64=5) %!d(string=hai) anos
pai
achega
7df4cfe606
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Applications/IRCClient/IRCAppWindow.cpp

+ 1 - 1
Applications/IRCClient/IRCAppWindow.cpp

@@ -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;