Prevent hidden CCS opening overlays

This commit is contained in:
hz
2026-08-06 04:23:53 -05:00
parent 38d62918d4
commit 4792ff2620
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -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