Prevent hidden CCS opening overlays
This commit is contained in:
@@ -435,6 +435,7 @@ func on_show(payload: Variant = null) -> void:
|
||||
|
||||
func on_hide() -> void:
|
||||
timer.stop()
|
||||
opening_active = false
|
||||
_dismiss_dialogs()
|
||||
|
||||
|
||||
@@ -458,6 +459,12 @@ func _ccs_dialogs() -> Array[Window]:
|
||||
|
||||
|
||||
func _render() -> void:
|
||||
# This screen stays subscribed to the shared CCS attempt while hidden.
|
||||
# Never allow its Window-based dialogs to appear over CCS Cases 2.
|
||||
if not visible:
|
||||
opening_active = false
|
||||
_dismiss_dialogs()
|
||||
return
|
||||
var attempt: Dictionary = CCSService.attempt
|
||||
if attempt.is_empty():
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user