diff options
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index e4f8e1c9..ac2e38f8 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
@@ -70,6 +70,11 @@ Scope { | |||
70 | mode: Custom.SystemdInhibitorParams.Delay | 70 | mode: Custom.SystemdInhibitorParams.Delay |
71 | } | 71 | } |
72 | 72 | ||
73 | Scope { | ||
74 | id: mprisProxy | ||
75 | property list<var> players: Mpris.players.values | ||
76 | } | ||
77 | |||
73 | WlSessionLock { | 78 | WlSessionLock { |
74 | id: lock | 79 | id: lock |
75 | 80 | ||
@@ -79,7 +84,7 @@ Scope { | |||
79 | 84 | ||
80 | if (locked) { | 85 | if (locked) { |
81 | Custom.KeePassXC.lockAllDatabases(); | 86 | Custom.KeePassXC.lockAllDatabases(); |
82 | Array.from(Mpris.players.values).forEach(player => { | 87 | Array.from(mprisProxy.players).forEach(player => { |
83 | if (player.canPause && player.isPlaying) | 88 | if (player.canPause && player.isPlaying) |
84 | player.pause(); | 89 | player.pause(); |
85 | }); | 90 | }); |