Skip to content

Commit 2977e07

Browse files
Roc25gred
and
gred
authored
ui: select thumb on press instead of click (#556)
Co-authored-by: gred <gred25@yandex.ru>
1 parent 774c886 commit 2977e07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tagstudio/src/qt/widgets/item_thumb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ def update_size(self, timestamp: float, size: QSize):
381381
def update_clickable(self, clickable: typing.Callable):
382382
"""Updates attributes of a thumbnail element."""
383383
if self.thumb_button.is_connected:
384-
self.thumb_button.clicked.disconnect()
384+
self.thumb_button.pressed.disconnect()
385385
if clickable:
386-
self.thumb_button.clicked.connect(clickable)
386+
self.thumb_button.pressed.connect(clickable)
387387
self.thumb_button.is_connected = True
388388

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

0 commit comments

Comments
 (0)