Skip to content

Commit

Permalink
Miscopy-paste
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Nov 27, 2024
1 parent 4f17d07 commit c384201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions laserstudio/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ def select_mode(self, mode: Union[Mode, int]):
is directly an instance of Mode.
"""
if isinstance(mode, int):
new_mode = Viewer.Mode(mode)
mode = Viewer.Mode(mode)
# If it has been requested to select the same mode, we deselect it.
if self.mode == new_mode:
new_mode = Viewer.Mode.NONE
if self.mode == mode:
mode = Viewer.Mode.NONE

self.mode = Viewer.Mode.NONE
self.mode = mode

def go_next(self):
"""Actions to perform when Laser Studio receive a Go Next command.
Expand Down

0 comments on commit c384201

Please sign in to comment.