0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

wip - fix(client_utils): fixed rpc refresh order

This commit is contained in:
2025-04-08 16:29:10 +02:00
parent ad0d789685
commit b956bd6e67

View File

@ -464,7 +464,6 @@ class BECGuiClient(RPCBase):
for gui_id, widget in self._ipython_registry.items():
if gui_id not in server_registry:
remove_from_registry.append(gui_id)
widget._refresh_references()
for gui_id in remove_from_registry:
self._ipython_registry.pop(gui_id)
@ -483,6 +482,9 @@ class BECGuiClient(RPCBase):
self._top_level = top_level_widgets
for widget in self._ipython_registry.values():
widget._refresh_references()
def _add_widget(self, state: dict, parent: object) -> RPCReference | None:
"""Add a widget to the namespace