mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-10-29 16:21:27 +01:00
fix(signal_label): dispatcher unsubscribed in the cleanup
This commit is contained in:
1 parent
8833a42cf4
commit
d19bf7eeee
1 file changed
+5
-1
@@ -8,7 +8,6 @@ import numpy as np
|
||||
from bec_lib.device import Device, Signal
|
||||
from bec_lib.endpoints import MessageEndpoints
|
||||
from bec_qthemes import material_icon
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtCore import Signal as QSignal
|
||||
from qtpy.QtWidgets import (
|
||||
QApplication,
|
||||
@@ -483,6 +482,11 @@ class SignalLabel(BECWidget, QWidget):
|
||||
self._custom_label if self._custom_label else f"{self._default_label}:"
|
||||
)
|
||||
|
||||
def cleanup(self):
|
||||
self.disconnect_device()
|
||||
self._device_obj = None
|
||||
super().cleanup()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
Reference in new issue
Block a user