diff --git a/EyeTrackApp/camera_widget.py b/EyeTrackApp/camera_widget.py index 7e8dbbe..6179cf0 100644 --- a/EyeTrackApp/camera_widget.py +++ b/EyeTrackApp/camera_widget.py @@ -349,11 +349,12 @@ class CameraWidget: self.start() def recenter_eyes(self, osc_message: OSCMessage): - if osc_message.data is not bool: + if not isinstance(osc_message.data,bool): return # just incase we get anything other than bool + self.settings.gui_recenter_eyes = True def recalibrate_eyes(self, osc_message: OSCMessage): - if osc_message.data is not bool: + if not isinstance(osc_message.data,bool): return # just incase we get anything other than bool if osc_message.data: