Commit 269353d5 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Don't add IDs to be removed multiple times

In case an application happens to issue multiple close commands in the
time between we record the first close and it actually being processed.
parent 93761e28
......@@ -142,7 +142,9 @@ void AbstractNotificationsModel::Private::onNotificationRemoved(uint removedId,
// some apps are notorious for closing a bunch of notifications at once
// causing newer notifications to move up and have a dialogs created for them
// just to then be discarded causing excess CPU usage
if (!pendingRemovals.contains(removedId)) {
if (!pendingRemovalTimer.isActive()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment