diff --git a/client/ui/settings_dialog.gd b/client/ui/settings_dialog.gd index 0f48940b7..b86889f4d 100644 --- a/client/ui/settings_dialog.gd +++ b/client/ui/settings_dialog.gd @@ -314,6 +314,13 @@ func is_ai_inference_suspended() -> bool: return _ai_inference_suspended +## Returns true if the battery warning label is currently visible. +func get_battery_warning_visible() -> bool: + if _ai_battery_warning_label == null: + return false + return _ai_battery_warning_label.visible + + ## Update battery suspension display state. ## Shows/hides the battery warning label; toggle stays enabled — player autonomy wins (D-138). ## Called when PlatformInfo.power_profile_changed fires (via main.gd or HardwareDetector).