1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-12-30 02:31:20 +01:00

fix(bec_connector): dedicated remove signal added for listeners

This commit is contained in:
2025-08-05 16:50:14 +02:00
parent 5a6641f0f9
commit b6d4d5d749

View File

@@ -77,6 +77,7 @@ class BECConnector:
USER_ACCESS = ["_config_dict", "_get_all_rpc", "_rpc_id"]
EXIT_HANDLERS = {}
remove_signal = Signal()
def __init__(
self,
@@ -450,6 +451,7 @@ class BECConnector:
# i.e. Curve Item from Waveform
else:
self.rpc_register.remove_rpc(self)
self.remove_signal.emit() # Emit the remove signal to notify listeners (eg docks in QtADS)
def get_config(self, dict_output: bool = True) -> dict | BaseModel:
"""