Skip to content

Commit

Permalink
sidebar: dont update states when hidden (#22948)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Nov 17, 2021
1 parent 7a3754d commit ddc3582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/ui/qt/sidebar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ void Sidebar::mouseReleaseEvent(QMouseEvent *event) {
}

void Sidebar::updateState(const UIState &s) {
if (!isVisible()) return;

auto &sm = *(s.sm);

auto deviceState = sm["deviceState"].getDeviceState();
Expand Down

0 comments on commit ddc3582

Please sign in to comment.