Make lock wallpaper lazy

This commit is contained in:
Ryan Hughes
2026-06-02 11:13:35 -04:00
parent fe70006736
commit 30bafe7bb0
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -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