raylib: fix WiFi in setup and updater (#36232)

move back to more base class
pull/36121/merge
Shane Smiskol 2 days ago committed by GitHub
parent eadab06f59
commit 29a6f0504a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      system/ui/widgets/network.py

@ -77,9 +77,6 @@ class NetworkUI(Widget):
self._nav_button = NavButton("Advanced") self._nav_button = NavButton("Advanced")
self._nav_button.set_click_callback(self._cycle_panel) self._nav_button.set_click_callback(self._cycle_panel)
def _update_state(self):
self._wifi_manager.process_callbacks()
def show_event(self): def show_event(self):
self._set_current_panel(PanelType.WIFI) self._set_current_panel(PanelType.WIFI)
self._wifi_panel.show_event() self._wifi_panel.show_event()
@ -305,6 +302,9 @@ class WifiManagerUI(Widget):
for icon in STRENGTH_ICONS + ["icons/checkmark.png", "icons/circled_slash.png", "icons/lock_closed.png"]: for icon in STRENGTH_ICONS + ["icons/checkmark.png", "icons/circled_slash.png", "icons/lock_closed.png"]:
gui_app.texture(icon, ICON_SIZE, ICON_SIZE) gui_app.texture(icon, ICON_SIZE, ICON_SIZE)
def _update_state(self):
self._wifi_manager.process_callbacks()
def _render(self, rect: rl.Rectangle): def _render(self, rect: rl.Rectangle):
if not self._networks: if not self._networks:
gui_label(rect, "Scanning Wi-Fi networks...", 72, alignment=rl.GuiTextAlignment.TEXT_ALIGN_CENTER) gui_label(rect, "Scanning Wi-Fi networks...", 72, alignment=rl.GuiTextAlignment.TEXT_ALIGN_CENTER)

Loading…
Cancel
Save