From d05c5df569cf94b4dae90c8600896b7f2236139c Mon Sep 17 00:00:00 2001 From: grekiki Date: Sun, 9 May 2021 07:24:22 +0200 Subject: [PATCH] Qt ui: show open panel on startup (#20859) * should work * spaces old-commit-hash: 95e8c75ebd4d96b5436431644c040fec1a02fdad --- selfdrive/ui/qt/offroad/settings.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 8907ce3e72..06c3a36715 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -309,6 +309,7 @@ void SettingsWindow::showEvent(QShowEvent *event) { for (auto &[name, panel] : panels) { QPushButton *btn = new QPushButton(name); btn->setCheckable(true); + btn->setChecked(nav_btns->buttons().size() == 0); btn->setStyleSheet(R"( QPushButton { color: grey;