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/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 779c7800..1ecb014d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -350,6 +350,7 @@ main(int argc, char *argv[]) w.show(); QObject::connect(&app, &QApplication::aboutToQuit, &w, [&w]() { + ChatPage::instance()->removeAllNotifications(); w.saveCurrentWindowSize(); if (http::client() != nullptr) { nhlog::net()->debug("shutting down all I/O threads & open connections"); -- cgit 1.5.1