1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

remove lock screen delays

This commit is contained in:
bbedward
2025-08-22 12:39:19 -04:00
parent dd99cb7ef8
commit beb7d9b47e
2 changed files with 3 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ Item {
source: SessionData.wallpaperPath || ""
fillMode: Image.PreserveAspectCrop
smooth: true
asynchronous: true
asynchronous: false
cache: true
visible: source !== ""
layer.enabled: true

View File

@@ -12,37 +12,14 @@ WlSessionLockSurface {
signal passwordChanged(string newPassword)
property bool thisLocked: false
readonly property bool locked: thisLocked && lock && !lock.unlocked
readonly property bool locked: lock && !lock.locked
function unlock(): void {
console.log("LockSurface.unlock() called")
if (lock) {
lock.unlocked = true
animDelay.start()
}
}
Component.onCompleted: {
thisLocked = true
}
Component.onDestruction: {
animDelay.stop()
lock.locked = false
}
color: "transparent"
Timer {
id: animDelay
interval: 1500 // Longer delay for success feedback
onTriggered: {
if (root.lock) {
root.lock.locked = false
}
}
}
PowerConfirmModal {
id: powerConfirmModal
}