This commit is contained in:
@@ -418,8 +418,8 @@ class XRayEye(BECWidget, QWidget):
|
||||
@SafeSlot(bool)
|
||||
@rpc_timeout(20)
|
||||
def on_live_view_enabled(self, enabled: bool):
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False): #TODO reeanble if needed
|
||||
# return
|
||||
logger.info(f"Live view is enabled: {enabled}")
|
||||
self.live_preview_toggle.blockSignals(True)
|
||||
if enabled:
|
||||
@@ -442,8 +442,8 @@ class XRayEye(BECWidget, QWidget):
|
||||
|
||||
@SafeSlot(dict, dict)
|
||||
def getting_camera_status(self, data, meta):
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False): #TODO reeanble if needed
|
||||
# return
|
||||
print(f"msg:{data}")
|
||||
live_mode_enabled = data.get("signals").get(f"{CAMERA[0]}_live_mode_enabled").get("value")
|
||||
self.camera_running_toggle.blockSignals(True)
|
||||
@@ -463,8 +463,8 @@ class XRayEye(BECWidget, QWidget):
|
||||
|
||||
@SafeSlot(dict, dict)
|
||||
def getting_shutter_status(self, data, meta):
|
||||
if getattr(self, "_destroyed", False):
|
||||
return
|
||||
# if getattr(self, "_destroyed", False): #TODO reeanble if needed
|
||||
# return
|
||||
shutter_open = bool(data.get("signals").get("fsh_shutter").get("value"))
|
||||
self.shutter_toggle.blockSignals(True)
|
||||
self.shutter_toggle.checked = shutter_open
|
||||
|
||||
Reference in New Issue
Block a user