| 124 | } |
| 125 | |
| 126 | void View::updateConnectToHidden() { |
| 127 | if (connect_to_hidden == nullptr) { |
| 128 | return; |
| 129 | } |
| 130 | |
| 131 | using enum service::wifi::RadioState; |
| 132 | switch (state->getRadioState()) { |
| 133 | case On: |
| 134 | case ConnectionPending: |
| 135 | case ConnectionActive: |
| 136 | lv_obj_remove_flag(connect_to_hidden, LV_OBJ_FLAG_HIDDEN); |
| 137 | break; |
| 138 | |
| 139 | case OnPending: |
| 140 | case OffPending: |
| 141 | case Off: |
| 142 | lv_obj_add_flag(connect_to_hidden, LV_OBJ_FLAG_HIDDEN); |
| 143 | break; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | void View::updateNetworkList() { |
| 148 | lv_obj_clean(networks_list); |
nothing calls this directly
no test coverage detected