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); nav_btns->buttons()[0]->setChecked(true);
return; return;
} }
}
SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
// setup two main layouts // setup two main layouts
QVBoxLayout *sidebar_layout = new QVBoxLayout(); QVBoxLayout *sidebar_layout = new QVBoxLayout();

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

Loading…
Cancel
Save