Re-enable the Settings Wi-Fi switch at runtime

The SquareLine export has shipped ui_Toggle_Wifi_Switch with LV_STATE_DISABLED
since the first commit, so it ignored every touch. OTA needs Wi-Fi joined, so
clear the state in UIStateManager's sync (survives SquareLine re-exports).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-26 22:18:18 +02:00
parent 1ec93dc413
commit f5b7f43e7c
+5
View File
@@ -73,6 +73,11 @@ void applySavedStatesToUI() {
lvgl_port_lock(-1);
// The SquareLine project ships the WiFi switch with LV_STATE_DISABLED (since
// the first export), which swallows every touch. Wi-Fi is needed to join a
// network for OTA updates, so re-enable it here - survives re-exports.
lv_obj_clear_state(uic_Toggle_Wifi_Switch, LV_STATE_DISABLED);
// Apply WiFi state
if (current_wifi_state) {
lv_obj_add_state(uic_Toggle_Wifi_Switch, LV_STATE_CHECKED);