mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
trigger sidebar status widget repaints on color change
This commit is contained in:
@@ -46,7 +46,11 @@ void StatusWidget::paintEvent(QPaintEvent *e){
|
||||
void StatusWidget::update(QString label, QString msg, QColor c) {
|
||||
status.setText(label);
|
||||
substatus.setText(msg);
|
||||
color = c;
|
||||
|
||||
if (color != c) {
|
||||
color = c;
|
||||
repaint();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user