feat: clean all notifications if exit on linux
This commit is contained in:
parent
3abb49c4a2
commit
919ec2a5e3
5 changed files with 33 additions and 1 deletions
|
|
@ -271,3 +271,12 @@ NotificationsManager::notificationClosed(uint id, uint reason)
|
|||
Q_UNUSED(reason);
|
||||
notificationIds.remove(id);
|
||||
}
|
||||
|
||||
void
|
||||
NotificationsManager::closeAllNotifications()
|
||||
{
|
||||
for (auto id : notificationIds.keys()) {
|
||||
closeNotification(id);
|
||||
notificationIds.remove(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue