MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / updateConnectToHidden

Method updateConnectToHidden

Tactility/Source/app/wifimanage/View.cpp:126–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void 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
147void View::updateNetworkList() {
148 lv_obj_clean(networks_list);

Callers

nothing calls this directly

Calls 1

getRadioStateMethod · 0.45

Tested by

no test coverage detected