Remove notification from table in single main thread
This commit is contained in:
parent
36d0038053
commit
e4680e0aec
|
@ -102,11 +102,11 @@ 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;
|
||||||
|
auto snoreNotification = m_IdToNotification.take(notificationId);
|
||||||
|
snoreNotification.removeActiveIn(notificationCenter);
|
||||||
|
snoreNotification.removeActiveIn(&SnoreCore::instance());
|
||||||
});
|
});
|
||||||
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
|
@end
|
||||||
|
|
Loading…
Reference in New Issue