Commit fcad37a6 authored by Nate Graham's avatar Nate Graham
Browse files

Remove "Critical always on top" notification option

There is no conceivable use case for turning this off, and the UI is
being removed in plasma-desktop!447.

So let's remove the backend code too, or else anyone who for some reason
had turned it off would be left without a GUI method of turning it back
on again.
parent 7b335cd6
......@@ -456,7 +456,7 @@ QtObject {
readonly property var notificationId: model.notificationId
popupWidth: globals.popupWidth
type: (model.urgency === NotificationManager.Notifications.CriticalUrgency && notificationSettings.keepCriticalAlwaysOnTop)
type: model.urgency === NotificationManager.Notifications.CriticalUrgency
|| (model.urgency === NotificationManager.Notifications.NormalUrgency && notificationSettings.keepNormalAlwaysOnTop)
? PlasmaCore.Dialog.CriticalNotification : PlasmaCore.Dialog.Notification
......@@ -9,9 +9,6 @@
<entry name="CriticalInDndMode" type="Bool">
<entry name="CriticalAlwaysOnTop" type="Bool">
<entry name="NormalAlwaysOnTop" type="Bool">
......@@ -347,20 +347,6 @@ bool Settings::dirty() const
return d->dirty;
bool Settings::keepCriticalAlwaysOnTop() const
return d->notificationSettings.criticalAlwaysOnTop();
void Settings::setKeepCriticalAlwaysOnTop(bool enable)
if (this->keepCriticalAlwaysOnTop() == enable) {
bool Settings::criticalPopupsInDoNotDisturbMode() const
return d->notificationSettings.criticalInDndMode();
......@@ -51,10 +51,6 @@ class NOTIFICATIONMANAGER_EXPORT Settings : public QObject
* Whether to show critical notification popups in do not disturb mode.
Q_PROPERTY(bool criticalPopupsInDoNotDisturbMode READ criticalPopupsInDoNotDisturbMode WRITE setCriticalPopupsInDoNotDisturbMode NOTIFY settingsChanged)
* Whether to keep critical notifications always on top.
Q_PROPERTY(bool keepCriticalAlwaysOnTop READ keepCriticalAlwaysOnTop WRITE setKeepCriticalAlwaysOnTop NOTIFY settingsChanged)
* Whether to keep normal notifications always on top.
......@@ -268,9 +264,6 @@ public:
bool criticalPopupsInDoNotDisturbMode() const;
void setCriticalPopupsInDoNotDisturbMode(bool enable);
bool keepCriticalAlwaysOnTop() const;
void setKeepCriticalAlwaysOnTop(bool enable);
bool keepNormalAlwaysOnTop() const;
void setKeepNormalAlwaysOnTop(bool enable);
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