diff --git a/src/modules/ui_state_manager.cpp b/src/modules/ui_state_manager.cpp index 91bdb36..a7d23dd 100644 --- a/src/modules/ui_state_manager.cpp +++ b/src/modules/ui_state_manager.cpp @@ -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);