Skip to content

Commit

Permalink
Correcting typing issue and whitespace
Browse files Browse the repository at this point in the history
Removed double-space and adding a False return indicating that the event has not been handled.
  • Loading branch information
Tiomat85 committed Jul 30, 2024
1 parent 0b25b7f commit c231754
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nion/ui/QtUserInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,8 @@ def mousePressed(self, x: int, y: int, raw_modifiers: int) -> None:
def mouseReleased(self, x: int, y: int, raw_modifiers: int) -> bool:
self._register_ui_activity()
if callable(self.on_mouse_released):
return self.on_mouse_released(x, y, QtKeyboardModifiers(raw_modifiers))
return self.on_mouse_released(x, y, QtKeyboardModifiers(raw_modifiers)
return False

def mousePositionChanged(self, x: int, y: int, raw_modifiers: int) -> None:
if callable(self.on_mouse_position_changed):
Expand Down

0 comments on commit c231754

Please sign in to comment.