fix settings buttons not disabling if started with ignition on

old-commit-hash: 1c952e75b5
commatwo_master
Adeeb Shihadeh 4 years ago
parent 77867519a5
commit 585d98a464
  1. 3
      selfdrive/ui/qt/offroad/settings.cc
  2. 2
      selfdrive/ui/qt/offroad/settings.h

@ -318,6 +318,9 @@ void SettingsWindow::showEvent(QShowEvent *event) {
nav_btns->buttons()[0]->setChecked(true);
return;
}
}
SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
// setup two main layouts
QVBoxLayout *sidebar_layout = new QVBoxLayout();

@ -52,7 +52,7 @@ class SettingsWindow : public QFrame {
Q_OBJECT
public:
explicit SettingsWindow(QWidget *parent = 0) : QFrame(parent) {};
explicit SettingsWindow(QWidget *parent = 0);
protected:
void hideEvent(QHideEvent *event) override;

Loading…
Cancel
Save