From 8b38c339f619ef7621028756846cf8ca8c968a6b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 30 Apr 2021 14:01:49 -0700 Subject: [PATCH] trigger sidebar status widget repaints on color change old-commit-hash: 1c89825d8607e912e974dd4609957f32674c8806 --- selfdrive/ui/qt/sidebar.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/sidebar.cc b/selfdrive/ui/qt/sidebar.cc index 5c26bcf315..a077168d90 100644 --- a/selfdrive/ui/qt/sidebar.cc +++ b/selfdrive/ui/qt/sidebar.cc @@ -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; }