From 0e2cc65548880a5446a23dfc4d1098378934f58a Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Wed, 1 Feb 2023 09:54:01 +0800 Subject: chore: Adjust about function closeAllNotification Log: maek closeAllNotification on all platform, move closeAllNotification action to aboutToQuit --- src/TrayIcon.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/TrayIcon.cpp') diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp index 76ccb8fc..1e33ac8d 100644 --- a/src/TrayIcon.cpp +++ b/src/TrayIcon.cpp @@ -15,9 +15,6 @@ #include "TrayIcon.h" -#if defined(Q_OS_LINUX) -#include "ChatPage.h" -#endif #if defined(Q_OS_MAC) #include #endif @@ -122,12 +119,7 @@ TrayIcon::TrayIcon(const QString &filename, QWindow *parent) quitAction_ = new QAction(tr("Quit"), this); connect(viewAction_, &QAction::triggered, parent, &QWindow::show); - connect(quitAction_, &QAction::triggered, this, [=] { -#if defined(Q_OS_LINUX) - ChatPage::instance()->removeAllNotifications(); -#endif - QApplication::quit(); - }); + connect(quitAction_, &QAction::triggered, this, QApplication::quit); menu->addAction(viewAction_); menu->addAction(quitAction_); -- cgit 1.5.1