mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 11:02:19 +08:00
sidebar: dont update states when hidden (#22948)
old-commit-hash: ddc35826f74ead9f6529910880f9d4f2c16fe727
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