mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 21:02:13 +08:00
UI: fix wrong background on controls unresponsive alert
old-commit-hash: 0e35db7c05172b154c70216d2b1b9ed8c9c7b163
This commit is contained in:
@@ -43,11 +43,11 @@ void OnroadWindow::updateState(const UIState &s) {
|
||||
QColor bgColor = bg_colors[s.status];
|
||||
Alert alert = Alert::get(*(s.sm), s.scene.started_frame);
|
||||
if (s.sm->updated("controlsState") || !alert.equal({})) {
|
||||
if (alert.type == "controlsUnresponsive") {
|
||||
bgColor = bg_colors[STATUS_ALERT];
|
||||
}
|
||||
alerts->updateAlert(alert, bgColor);
|
||||
}
|
||||
if (alert.type == "controlsUnresponsive") {
|
||||
bgColor = bg_colors[STATUS_ALERT];
|
||||
}
|
||||
if (bg != bgColor) {
|
||||
// repaint border
|
||||
bg = bgColor;
|
||||
|
||||
Reference in New Issue
Block a user