From 82e705f9135402ace98bf75aa5be61b838362f1e Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Tue, 17 Oct 2023 23:50:53 +0200 Subject: [PATCH] fix updating JsonItem.Icon in UI --- src/ui/trackerview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/trackerview.cpp b/src/ui/trackerview.cpp index d0f92272..7cb1135f 100644 --- a/src/ui/trackerview.cpp +++ b/src/ui/trackerview.cpp @@ -212,6 +212,9 @@ TrackerView::TrackerView(int x, int y, int w, int h, Tracker* tracker, const std _tracker->onStateChanged += {this, [this](void *s, const std::string& check) { updateState(check); }}; + _tracker->onDisplayChanged += {this, [this](void *s, const std::string& check) { + updateDisplay(check); + }}; _tracker->onLocationSectionChanged += {this, [this](void *s, const LocationSection& sec) { updateLocations(); }};