raise trigger lock screens (if possible)

so they don't get stuck under new viewscreens and become lost (and
therefore overlay will be forever locked)
develop
Myk Taylor 2023-01-13 12:16:49 -08:00
parent 99350bdb73
commit cc0ff6a93d
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 7 additions and 3 deletions

@ -43,7 +43,12 @@ end
local function triggered_screen_has_lock()
if not trigger_lock_holder_screen then return false end
if trigger_lock_holder_screen:isActive() then return true end
if trigger_lock_holder_screen:isActive() then
if trigger_lock_holder_screen.raise then
trigger_lock_holder_screen:raise()
end
return true
end
return register_trigger_lock_screen(nil, nil)
end
@ -429,9 +434,8 @@ local function _update_viewscreen_widgets(vs_name, vs, now_ms)
return now_ms
end
-- not subject to trigger lock since these widgets are already filtered by
-- viewscreen
function update_viewscreen_widgets(vs_name, vs)
if triggered_screen_has_lock() then return end
local now_ms = _update_viewscreen_widgets(vs_name, vs, nil)
_update_viewscreen_widgets('all', vs, now_ms)
end