Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openpilot/selfdrive/ui/mici/layouts/settings/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better text would be "Failed to get available branches. Ensure you're connected to the internet and try again" in case it's a git/weird fork issue it's more accurate

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#38732

fair

return
gui_app.push_widget(BranchSelectPage(self._on_select))

def _on_select(self, branch: str):
Expand Down
Loading