Skip to content

Commit

Permalink
Change name of signal follow_stage_sight_changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Nov 25, 2024
1 parent 8305a4d commit 32a3e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion laserstudio/widgets/toolbars/zoomtoolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, viewer: "Viewer"):
w.setCheckable(True)
w.setIconSize(QSize(24, 24))
w.toggled.connect(lambda x: viewer.__setattr__("follow_stage_sight", x))
viewer.followStageSightChanged.connect(w.setChecked)
viewer.follow_stage_sight_changed.connect(w.setChecked)
w.setChecked(True)
self.addWidget(w)

Expand Down
4 changes: 2 additions & 2 deletions laserstudio/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Mode(int, Enum):
# Signal emitted when the mouse has moved in scene
mouse_moved = pyqtSignal(float, float)
# Signal emitted when the follow stage sight option changed
followStageSightChanged = pyqtSignal(bool)
follow_stage_sight_changed = pyqtSignal(bool)

def __init__(self, parent=None):
super().__init__(parent)
Expand Down Expand Up @@ -153,7 +153,7 @@ def follow_stage_sight(self, value: bool):
# Emit the signal if necessary
if self._follow_stage_sight != value:
self._follow_stage_sight = value
self.followStageSightChanged.emit(value)
self.follow_stage_sight_changed.emit(value)

def reset_camera(self):
"""Resets the camera to show all elements of the scene"""
Expand Down

0 comments on commit 32a3e97

Please sign in to comment.