From d2d4ad7ad54b5b4f8c4d367a50cf1ab65e9fc1d6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 19 Jul 2022 10:45:39 -0700 Subject: [PATCH] UI: add description for branch switcher old-commit-hash: 50f7545ed7ef008526b6b081bbc2f96e05fc54e1 --- selfdrive/ui/qt/offroad/settings.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 65b9e3e4cc..0956f6c8dd 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -256,9 +256,10 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) { }); connect(uiState(), &UIState::offroadTransition, updateBtn, &QPushButton::setEnabled); - branchSwitcherBtn = new ButtonControl(tr("Switch Branch"), tr("ENTER")); + branchSwitcherBtn = new ButtonControl(tr("Switch Branch"), tr("ENTER"), tr("The new branch will be pulled the next time the updater runs.")); connect(branchSwitcherBtn, &ButtonControl::clicked, [=]() { - QString branch = InputDialog::getText(tr("Enter name of new branch"), this); + QString branch = InputDialog::getText(tr("Enter branch name"), this, tr("The new branch will be pulled the next time the updater runs."), + false, -1, QString::fromStdString(params.get("SwitchToBranch"))); if (branch.isEmpty()) { params.remove("SwitchToBranch"); } else {