diff --git a/libnotificationmanager/notificationsmodel.cpp b/libnotificationmanager/notificationsmodel.cpp index 2634c023f..bfa414c4a 100644 --- a/libnotificationmanager/notificationsmodel.cpp +++ b/libnotificationmanager/notificationsmodel.cpp @@ -124,7 +124,6 @@ void NotificationsModel::Private::onNotificationReplaced(uint replacedId, const return; } - Q_ASSERT(notifications[row].id() == notification.id()); setupNotificationTimeout(notification); notifications[row] = notification; diff --git a/libnotificationmanager/settings.cpp b/libnotificationmanager/settings.cpp index 5ea7c0d40..006b1ea08 100644 --- a/libnotificationmanager/settings.cpp +++ b/libnotificationmanager/settings.cpp @@ -505,6 +505,11 @@ QStringList Settings::historyBlacklistedServices() const return d->behaviorMatchesList(d->servicesGroup(), ShowInHistory, false); } +QStringList Settings::badgeBlacklistedApplications() const +{ + return d->behaviorMatchesList(d->applicationsGroup(), ShowBadges, false); +} + QDateTime Settings::notificationsInhibitedUntil() const { return DoNotDisturbSettings::until(); diff --git a/libnotificationmanager/settings.h b/libnotificationmanager/settings.h index 02947aa3a..5e46e6f3e 100644 --- a/libnotificationmanager/settings.h +++ b/libnotificationmanager/settings.h @@ -131,6 +131,11 @@ class NOTIFICATIONMANAGER_EXPORT Settings : public QObject */ Q_PROPERTY(QStringList historyBlacklistedServices READ historyBlacklistedServices NOTIFY settingsChanged) + /** + * A list of desktop entries of applications which shouldn't show badges in task manager. + */ + Q_PROPERTY(QStringList badgeBlacklistedApplications READ badgeBlacklistedApplications NOTIFY settingsChanged) + /** * The date until which do not disturb mode is enabled. * @@ -284,6 +289,8 @@ public: QStringList historyBlacklistedApplications() const; QStringList historyBlacklistedServices() const; + QStringList badgeBlacklistedApplications() const; + QDateTime notificationsInhibitedUntil() const; void setNotificationsInhibitedUntil(const QDateTime &time); void resetNotificationsInhibitedUntil();