diff options
author | ShootingStarDragons <ShootingStarDragons@protonmail.com> | 2023-01-29 13:46:00 +0800 |
---|---|---|
committer | ShootingStarDragons <ShootingStarDragons@protonmail.com> | 2023-01-29 13:46:00 +0800 |
commit | 919ec2a5e3ceb1f9b09c69301e491f4fe100968f (patch) | |
tree | 4dfff58e8ecf53dfe6b391a783cca5ac93cfdfc8 /src/ChatPage.cpp | |
parent | 3abb49c4a2338f1d07ca68e27f3030b1a6f2a97f (diff) |
feat: clean all notifications if exit on linux
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index cf44ae00..349f8fde 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -1640,3 +1640,11 @@ ChatPage::isRoomActive(const QString &room_id) return QGuiApplication::focusWindow() && QGuiApplication::focusWindow()->isActive() && MainWindow::instance()->windowForRoom(room_id) == QGuiApplication::focusWindow(); } + +#if defined (Q_OS_LINUX) +void +ChatPage::removeAllNotifications() +{ + notificationsManager->closeAllNotifications(); +} +#endif |