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

move back to more base class
This commit is contained in:
Shane Smiskol
2025-10-01 00:46:51 -07:00
committed by GitHub
parent eadab06f59
commit 29a6f0504a
+3 -3
View File
@@ -77,9 +77,6 @@ class NetworkUI(Widget):
self._nav_button = NavButton("Advanced")
self._nav_button.set_click_callback(self._cycle_panel)
def _update_state(self):
self._wifi_manager.process_callbacks()
def show_event(self):
self._set_current_panel(PanelType.WIFI)
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"]:
gui_app.texture(icon, ICON_SIZE, ICON_SIZE)
def _update_state(self):
self._wifi_manager.process_callbacks()
def _render(self, rect: rl.Rectangle):
if not self._networks:
gui_label(rect, "Scanning Wi-Fi networks...", 72, alignment=rl.GuiTextAlignment.TEXT_ALIGN_CENTER)