sidebar: dont update states when hidden (#22948)

old-commit-hash: ddc35826f7
commatwo_master
Dean Lee 3 years ago committed by GitHub
parent f48cbfcd8d
commit ec71ceead3
  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