sidebar: dont update states when hidden (#22948)

pull/22949/head
Dean Lee 3 years ago committed by GitHub
parent 7a3754d50b
commit ddc35826f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/sidebar.cc

@ -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();

Loading…
Cancel
Save