Skip to content

Commit 6f40ed6

Browse files
committed
Open file on thumbnail double click
1 parent fb949b8 commit 6f40ed6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tagstudio/src/qt/widgets/item_thumb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ def __init__(
218218

219219
self.thumb_button.setContextMenuPolicy(Qt.ContextMenuPolicy.ActionsContextMenu)
220220
self.opener = FileOpenerHelper("")
221+
self.thumb_button.clicked.connect(
222+
lambda: self.opener.open_file() if self.thumb_button.selected else None
223+
)
221224
open_file_action = QAction("Open file", self)
222225
open_file_action.triggered.connect(self.opener.open_file)
223226
open_explorer_action = QAction("Open file in explorer", self)

0 commit comments

Comments
 (0)