From 0ed15a14ce9c9d0c469507c9a6d7d21ed3e13ecd Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] Download prompt when switching branches --- selfdrive/ui/qt/offroad/software_settings.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/ui/qt/offroad/software_settings.cc b/selfdrive/ui/qt/offroad/software_settings.cc index 640b05e2a..0922c245e 100644 --- a/selfdrive/ui/qt/offroad/software_settings.cc +++ b/selfdrive/ui/qt/offroad/software_settings.cc @@ -86,6 +86,12 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) { checkForUpdates(); // FrogPilot variables + if (selection != cur) { + if (FrogPilotConfirmationDialog::yesorno(tr("This branch must be downloaded before switching. Would you like to download it now?"), this)) { + std::system("pkill -SIGHUP -f system.updated.updated"); + frogpilotUIState()->params_memory.putBool("ManualUpdateInitiated", true); + } + } } }); addItem(targetBranchBtn);