mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 14:22:07 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user