  #include "selfdrive/ui/qt/util.h"
  #include "selfdrive/ui/qt/qt_window.h"
  
  TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
    // param, title, desc, icon
    std::vector<std::tuple<QString, QString, QString, QString>> toggles{
      {
 
</s> remove   QWidget *widgets[] = {versionLbl, lastUpdateLbl, updateBtn, gitBranchLbl, gitCommitLbl, osVersionLbl, uninstallBtn};
 </s> add   QWidget *widgets[] = {versionLbl, lastUpdateLbl, updateBtn, branchSwitcherBtn, gitBranchLbl, gitCommitLbl, osVersionLbl, uninstallBtn}; </s> remove 
 </s> add   connect(uiState(), &UIState::offroadTransition, updateBtn, &QPushButton::setEnabled);

  branchSwitcherBtn = new ButtonControl(tr("Switch Branch"), tr("ENTER"));
  connect(branchSwitcherBtn, &ButtonControl::clicked, [=]() {
    QString branch = InputDialog::getText(tr("Enter name of new branch"), this);
    if (branch.isEmpty()) {
      params.remove("SwitchToBranch");
    } else {
      params.put("SwitchToBranch", branch.toStdString());
    }
    std::system("pkill -1 -f selfdrive.updated");
  });
  connect(uiState(), &UIState::offroadTransition, branchSwitcherBtn, &QPushButton::setEnabled); </s> remove       r = [
        run(["git", "reset", "--hard", "@{u}"], OVERLAY_MERGED, low_priority=True),
        run(["git", "clean", "-xdf"], OVERLAY_MERGED, low_priority=True ),
        run(["git", "submodule", "init"], OVERLAY_MERGED, low_priority=True),
        run(["git", "submodule", "update"], OVERLAY_MERGED, low_priority=True),
 </s> add       cmds = [
        ["git", "reset", "--hard", "@{u}"],
        ["git", "clean", "-xdf"],
        ["git", "submodule", "init"],
        ["git", "submodule", "update"],
#include "selfdrive/ui/qt/widgets/input.h"
  #include "selfdrive/ui/qt/util.h"
  #include "selfdrive/ui/qt/qt_window.h"
#include "selfdrive/ui/qt/widgets/input.h"
  
  TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
    // param, title, desc, icon
    std::vector<std::tuple<QString, QString, QString, QString>> toggles{
      {
keep add keep keep keep keep keep
 updated: add branch switching (#25200)

* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/offroad/settings.cc