chore: Adjust about function closeAllNotification

Log: maek closeAllNotification on all platform, move
closeAllNotification action to aboutToQuit
This commit is contained in:
ShootingStarDragons 2023-02-01 09:54:01 +08:00
parent 919ec2a5e3
commit 0e2cc65548
4 changed files with 4 additions and 13 deletions

View file

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