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:
@@ -42,7 +42,7 @@ Item {
|
||||
source: SessionData.wallpaperPath || ""
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
smooth: true
|
||||
asynchronous: true
|
||||
asynchronous: false
|
||||
cache: true
|
||||
visible: source !== ""
|
||||
layer.enabled: true
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user