trigger sidebar status widget repaints on color change

pull/20779/head
Adeeb Shihadeh 4 years ago
parent f9a961f6fb
commit 1c89825d86
  1. 6
      selfdrive/ui/qt/sidebar.cc

@ -46,7 +46,11 @@ void StatusWidget::paintEvent(QPaintEvent *e){
void StatusWidget::update(QString label, QString msg, QColor c) { void StatusWidget::update(QString label, QString msg, QColor c) {
status.setText(label); status.setText(label);
substatus.setText(msg); substatus.setText(msg);
color = c;
if (color != c) {
color = c;
repaint();
}
return; return;
} }

Loading…
Cancel
Save