Update viewer panel when importance labels change (#1992)

This commit is contained in:
Veronica Berglyd Olsen
2024-07-25 19:21:52 +02:00
parent 5936e1a68b
commit 3bffaa01dc
4 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -121,7 +121,7 @@ class NWStatus:
return key
def update(self, update: list[tuple[str | None, StatusEntry]]) -> None:
"""Update the list of statuses, and from removed list."""
"""Update the list of statuses."""
self._store.clear()
for key, entry in update:
self._store[self._checkKey(key)] = entry
@@ -130,6 +130,9 @@ class NWStatus:
if self._default not in self._store:
self._default = next(iter(self._store)) if self._store else None
# Emit the change signal
SHARED.projectSingalProxy({"event": "statusLabels", "kind": self._prefix})
return
def check(self, value: str) -> str: