Skip to content

Commit

Permalink
ui: select thumb on press instead of click (#556)
Browse files Browse the repository at this point in the history
Co-authored-by: gred <gred25@yandex.ru>
  • Loading branch information
Roc25 and gred authored Nov 18, 2024
1 parent 774c886 commit 2977e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tagstudio/src/qt/widgets/item_thumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ def update_size(self, timestamp: float, size: QSize):
def update_clickable(self, clickable: typing.Callable):
"""Updates attributes of a thumbnail element."""
if self.thumb_button.is_connected:
self.thumb_button.clicked.disconnect()
self.thumb_button.pressed.disconnect()
if clickable:
self.thumb_button.clicked.connect(clickable)
self.thumb_button.pressed.connect(clickable)
self.thumb_button.is_connected = True

def refresh_badge(self, entry: Entry | None = None):
Expand Down

0 comments on commit 2977e07

Please sign in to comment.