ui: repaint toggles after offroadTransition (#24038)

* repaint after offroadTransition

* Update selfdrive/ui/qt/widgets/controls.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4802c864d5
This commit is contained in:
Shane Smiskol
2022-03-25 13:52:22 -07:00
committed by GitHub
parent c00256ca1d
commit 769c76a773
+1 -1
View File
@@ -101,7 +101,7 @@ public:
QObject::connect(&toggle, &Toggle::stateChanged, this, &ToggleControl::toggleFlipped);
}
void setEnabled(bool enabled) { toggle.setEnabled(enabled); }
void setEnabled(bool enabled) { toggle.setEnabled(enabled); toggle.update(); }
signals:
void toggleFlipped(bool state);