Remove notification from table in single main thread

This commit is contained in:
Max Risukhin 2018-10-16 12:44:21 +03:00 committed by Max Risuhin
parent 36d0038053
commit e4680e0aec
No known key found for this signature in database
GPG Key ID: BF733F5ACA0B4448
1 changed files with 4 additions and 4 deletions

View File

@ -102,12 +102,12 @@ BOOL installNSBundleHook()
qCWarning(SNORE) << "Delivered notification is not recognized and will not be remove from active list. Notification id:" << notificationId; qCWarning(SNORE) << "Delivered notification is not recognized and will not be remove from active list. Notification id:" << notificationId;
return; return;
} }
});
qCWarning(SNORE) << "Notification with following id is delivered or dismissed:" << notificationId; qCWarning(SNORE) << "Notification with following id is delivered or dismissed:" << notificationId;
auto snoreNotification = m_IdToNotification.take(notificationId); auto snoreNotification = m_IdToNotification.take(notificationId);
snoreNotification.removeActiveIn(notificationCenter); snoreNotification.removeActiveIn(notificationCenter);
snoreNotification.removeActiveIn(&SnoreCore::instance()); snoreNotification.removeActiveIn(&SnoreCore::instance());
}); });
});
} }
@end @end