mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-09 07:42:05 +08:00
sidebar: dont update states when hidden (#22948)
old-commit-hash: ddc35826f7
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user