From 30bafe7bb0af7e51076d9fe788e4e9b1aa565b6e Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Tue, 2 Jun 2026 11:13:35 -0400 Subject: [PATCH] Make lock wallpaper lazy --- shell/plugins/lock/LockView.qml | 5 +++-- shell/plugins/lock/Service.qml | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/shell/plugins/lock/LockView.qml b/shell/plugins/lock/LockView.qml index e882e0e7..224f33b7 100644 --- a/shell/plugins/lock/LockView.qml +++ b/shell/plugins/lock/LockView.qml @@ -12,6 +12,7 @@ Item { property string failureMessage: "" property int failedAttempts: 0 property bool inputEnabled: true + property bool loadBackground: true property string passwordText: "" property real scaleFactor: 1 property bool syncingPasswordText: false @@ -71,7 +72,7 @@ Item { Image { id: wallpaper anchors.fill: parent - source: root.fileUrl(root.backgroundPath) + source: root.loadBackground ? root.fileUrl(root.backgroundPath) : "" fillMode: Image.PreserveAspectCrop asynchronous: true cache: false @@ -83,7 +84,7 @@ Item { anchors.fill: wallpaper source: wallpaper autoPaddingEnabled: false - blurEnabled: wallpaper.status === Image.Ready + blurEnabled: root.loadBackground && wallpaper.status === Image.Ready blur: 1.0 blurMax: 64 blurMultiplier: 1.0 diff --git a/shell/plugins/lock/Service.qml b/shell/plugins/lock/Service.qml index c7e43d16..2a6c4277 100644 --- a/shell/plugins/lock/Service.qml +++ b/shell/plugins/lock/Service.qml @@ -187,6 +187,7 @@ Item { failureMessage: root.failureMessage failedAttempts: root.failedAttempts inputEnabled: root.lockRequested + loadBackground: root.locked passwordText: root.enteredPassword scaleFactor: lockSurface.screen && lockSurface.screen.devicePixelRatio > 0 ? lockSurface.screen.devicePixelRatio : 1 onPasswordTextEdited: function(password) { root.enteredPassword = password } @@ -217,6 +218,7 @@ Item { failureMessage: "" failedAttempts: 0 inputEnabled: false + loadBackground: root.previewVisible passwordText: "" scaleFactor: previewWindow.screen && previewWindow.screen.devicePixelRatio > 0 ? previewWindow.screen.devicePixelRatio : 1 }