Skip to content

Commit

Permalink
fix: drag and drop no longer resets (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeleyM authored Jan 17, 2025
1 parent 44ff17c commit 6ea2c99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tagstudio/src/qt/widgets/item_thumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ def update_clickable(self, clickable: typing.Callable):
if clickable:
with catch_warnings(record=True):
self.thumb_button.pressed.disconnect()
self.thumb_button.pressed.connect(clickable)
self.thumb_button.pressed.connect(
lambda: clickable() if not self.thumb_button.selected else None
)

def set_item_id(self, item_id: int):
self.item_id = item_id
Expand Down

0 comments on commit 6ea2c99

Please sign in to comment.