Remove notification from table in single main thread
This commit is contained in:
parent
36d0038053
commit
e4680e0aec
|
@ -102,12 +102,12 @@ BOOL installNSBundleHook()
|
|||
qCWarning(SNORE) << "Delivered notification is not recognized and will not be remove from active list. Notification id:" << notificationId;
|
||||
return;
|
||||
}
|
||||
});
|
||||
qCWarning(SNORE) << "Notification with following id is delivered or dismissed:" << notificationId;
|
||||
auto snoreNotification = m_IdToNotification.take(notificationId);
|
||||
snoreNotification.removeActiveIn(notificationCenter);
|
||||
snoreNotification.removeActiveIn(&SnoreCore::instance());
|
||||
});
|
||||
});
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue