From 78932ed706901920b700b1356570bc0fe94ce00b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Sep 2025 00:17:03 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/shell/quickshell') 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 { mode: Custom.SystemdInhibitorParams.Delay } + Scope { + id: mprisProxy + property list players: Mpris.players.values + } + WlSessionLock { id: lock @@ -79,7 +84,7 @@ Scope { if (locked) { Custom.KeePassXC.lockAllDatabases(); - Array.from(Mpris.players.values).forEach(player => { + Array.from(mprisProxy.players).forEach(player => { if (player.canPause && player.isPlaying) player.pause(); }); -- cgit v1.2.3