From 172a8a986954187462250f6d0cc28098fa43d461 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Sat, 22 Aug 2026 22:16:25 -0700 Subject: [PATCH] ui: guard branch switcher before internet connected --- openpilot/selfdrive/ui/mici/layouts/settings/software.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openpilot/selfdrive/ui/mici/layouts/settings/software.py b/openpilot/selfdrive/ui/mici/layouts/settings/software.py index 0f12004828f2b5..512ad616e0261e 100644 --- a/openpilot/selfdrive/ui/mici/layouts/settings/software.py +++ b/openpilot/selfdrive/ui/mici/layouts/settings/software.py @@ -246,6 +246,9 @@ def _update_state(self): self.set_value(target) def _on_click(self): + if not ui_state.params.get("UpdaterAvailableBranches"): + gui_app.push_widget(BigDialog("", tr("Please connect to Wi-Fi to switch branches."))) + return gui_app.push_widget(BranchSelectPage(self._on_select)) def _on_select(self, branch: str):