diff --git a/bec_widgets/utils/bec_dispatcher.py b/bec_widgets/utils/bec_dispatcher.py index 3b02f21e..87299da0 100644 --- a/bec_widgets/utils/bec_dispatcher.py +++ b/bec_widgets/utils/bec_dispatcher.py @@ -35,7 +35,7 @@ class QtThreadSafeCallback(QObject): # make 2 differents QtThreadSafeCallback to look # identical when used as dictionary keys, if the # callback is the same - return id(self.cb) + return f"{id(self.cb)}{self.cb_info}".__hash__() def __call__(self, msg_content, metadata): self.cb_signal.emit(msg_content, metadata)