fix(lockscreen): suppress AppLauncher opening when LockscreenService.isLocked is active
This commit is contained in:
parent
fccc488349
commit
550a28d02d
@ -18,7 +18,7 @@ PanelWindow {
|
|||||||
WlrLayershell.layer: WlrLayershell.Overlay
|
WlrLayershell.layer: WlrLayershell.Overlay
|
||||||
WlrLayershell.keyboardFocus: WlrLayershell.Exclusive
|
WlrLayershell.keyboardFocus: WlrLayershell.Exclusive
|
||||||
|
|
||||||
visible: PopupService.appLauncherOpen
|
visible: PopupService.appLauncherOpen && !LockscreenService.isLocked
|
||||||
|
|
||||||
// Currently highlighted app index for keyboard navigation
|
// Currently highlighted app index for keyboard navigation
|
||||||
property int selectedIndex: 0
|
property int selectedIndex: 0
|
||||||
|
|||||||
@ -66,6 +66,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function lock() {
|
function lock() {
|
||||||
|
PopupService.closeAll()
|
||||||
userPassword = ""
|
userPassword = ""
|
||||||
typedCount = 0
|
typedCount = 0
|
||||||
authFailed = false
|
authFailed = false
|
||||||
|
|||||||
@ -133,6 +133,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleAppLauncher() {
|
function toggleAppLauncher() {
|
||||||
|
if (LockscreenService.isLocked) return;
|
||||||
let state = !appLauncherOpen
|
let state = !appLauncherOpen
|
||||||
closeAll()
|
closeAll()
|
||||||
appLauncherOpen = state
|
appLauncherOpen = state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user