mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-06-05 04:48:40 +02:00
wip no queued connection and no _destroyed
This commit is contained in:
@@ -257,8 +257,8 @@ class DeviceComboBox(BECWidget, QComboBox):
|
||||
@SafeSlot()
|
||||
def update_devices_from_filters(self):
|
||||
"""Refresh the available device list from current device/readout/signal filters."""
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False):
|
||||
# return
|
||||
|
||||
self.config.device_filter = [entry.value for entry in self.device_filter]
|
||||
self.config.readout_filter = [entry.value for entry in self.readout_filter]
|
||||
@@ -494,8 +494,8 @@ class DeviceComboBox(BECWidget, QComboBox):
|
||||
action: Device update action emitted by BEC.
|
||||
content: Device update payload. Currently unused.
|
||||
"""
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False):
|
||||
# return
|
||||
if action in ["add", "remove", "reload"]:
|
||||
self.device_config_update.emit()
|
||||
|
||||
|
||||
@@ -211,8 +211,8 @@ class SignalComboBox(BECWidget, QComboBox):
|
||||
content: Optional callback payload from BEC device updates. Currently unused.
|
||||
metadata: Optional callback metadata from BEC device updates. Currently unused.
|
||||
"""
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False):
|
||||
# return
|
||||
|
||||
self.config.signal_filter = [kind.name for kind in self.signal_filter]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user