Skip to content

Commit

Permalink
Merge from 5.x: PR #16686
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Nov 1, 2021
2 parents e639e69 + 450c315 commit 811fa0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spyder/plugins/explorer/widgets/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1601,12 +1601,13 @@ def restore_expanded_state(self):
# ------------------------------------------------------------------------
def set_single_click_to_open(self, value):
"""Set single click to open items."""
# Track mouse movements to change cursor shape.
# Track mouse movements to change cursor shape when the option is
# True. This activates the mouseMoveEvent declared above.
if value:
self.setMouseTracking(True)
else:
self.unsetCursor()
self.setMouseTracking(False)
self.unsetCursor()

def set_file_associations(self, value):
"""Set file associations open items."""
Expand Down

0 comments on commit 811fa0e

Please sign in to comment.