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>
pull/24009/merge
Shane Smiskol 2022-03-25 13:52:22 -07:00 committed by GitHub
parent aeb98b3937
commit 4802c864d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);