Fix Lockscreen (#121)
This commit is contained in:
parent
e7577ed488
commit
d3add14ce8
2 changed files with 16 additions and 2 deletions
|
|
@ -44,7 +44,11 @@ Item {
|
|||
target: "lockScreen"
|
||||
|
||||
function toggle() {
|
||||
lockScreen.isLoaded = !lockScreen.isLoaded
|
||||
// Only lock if not already locked (prevents the red screen issue)
|
||||
// Note: No unlock via IPC for security reasons
|
||||
if (!lockScreen.isLoaded) {
|
||||
lockScreen.isLoaded = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue