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

@ -1641,10 +1641,10 @@ ChatPage::isRoomActive(const QString &room_id)
MainWindow::instance()->windowForRoom(room_id) == QGuiApplication::focusWindow();
}
#if defined (Q_OS_LINUX)
void
ChatPage::removeAllNotifications()
{
#if defined (Q_OS_LINUX)
notificationsManager->closeAllNotifications();
}
#endif
}