diff options
Diffstat (limited to 'accounts/gkleen@sif/shell')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/NotificationDisplay.qml | 2 | ||||
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/NotificationDisplay.qml b/accounts/gkleen@sif/shell/quickshell/NotificationDisplay.qml index 03406687..83418e76 100644 --- a/accounts/gkleen@sif/shell/quickshell/NotificationDisplay.qml +++ b/accounts/gkleen@sif/shell/quickshell/NotificationDisplay.qml | |||
| @@ -15,7 +15,7 @@ Scope { | |||
| 15 | id: notifsRepeater | 15 | id: notifsRepeater |
| 16 | 16 | ||
| 17 | model: ScriptModel { | 17 | model: ScriptModel { |
| 18 | values: NotificationManager.active ? [] : NotificationManager.groups | 18 | values: NotificationManager.active ? NotificationManager.groups : [] |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | delegate: PanelWindow { | 21 | delegate: PanelWindow { |
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml index 19b8b606..09d45719 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | |||
| @@ -7,7 +7,7 @@ import Quickshell.Services.Notifications | |||
| 7 | Singleton { | 7 | Singleton { |
| 8 | id: root | 8 | id: root |
| 9 | 9 | ||
| 10 | readonly property bool active: !lockscreenActive && !displayInhibited | 10 | readonly property bool active: !root.lockscreenActive && !root.displayInhibited |
| 11 | property bool lockscreenActive: false | 11 | property bool lockscreenActive: false |
| 12 | property bool displayInhibited: false | 12 | property bool displayInhibited: false |
| 13 | property alias trackedNotifications: server.trackedNotifications | 13 | property alias trackedNotifications: server.trackedNotifications |
| @@ -70,13 +70,9 @@ Singleton { | |||
| 70 | required property int expirationTime | 70 | required property int expirationTime |
| 71 | property list<QtObject> data: [ | 71 | property list<QtObject> data: [ |
| 72 | Timer { | 72 | Timer { |
| 73 | running: root.active | 73 | running: root.active && !timer.parent.retained |
| 74 | interval: timer.expirationTime | 74 | interval: timer.expirationTime |
| 75 | onTriggered: { | 75 | onTriggered: timer.parent.expire() |
| 76 | timer.parent.expirationTimer = null; | ||
| 77 | timer.parent.expire(); | ||
| 78 | this.deleteLater(); | ||
| 79 | } | ||
| 80 | } | 76 | } |
| 81 | ] | 77 | ] |
| 82 | } | 78 | } |
