Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tagstudio/src/qt/widgets/item_thumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import contextlib
import logging
import os
import platform
import time
import typing
from pathlib import Path
Expand Down Expand Up @@ -194,7 +195,15 @@ def __init__(
self.opener = FileOpenerHelper("")
open_file_action = QAction("Open file", self)
open_file_action.triggered.connect(self.opener.open_file)
open_explorer_action = QAction("Open file in explorer", self)

system = platform.system()
if system == "Darwin":
open_explorer_action = QAction("Reveal file in Finder", self)
Comment thread
Precontation marked this conversation as resolved.
Outdated
elif system == "Linux":
open_explorer_action = QAction("Open file in filesystem", self) # TODO: Rename to whatever the Linux explorer is
Comment thread
Precontation marked this conversation as resolved.
Outdated
else:
open_explorer_action = QAction("Open file in explorer", self)
Comment thread
Precontation marked this conversation as resolved.
Outdated

open_explorer_action.triggered.connect(self.opener.open_explorer)
self.thumb_button.addAction(open_file_action)
self.thumb_button.addAction(open_explorer_action)
Expand Down
11 changes: 10 additions & 1 deletion tagstudio/src/qt/widgets/preview_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
from pathlib import Path
import platform
import time
import typing
from datetime import datetime as dt
Expand Down Expand Up @@ -83,7 +84,15 @@ def __init__(self, library: Library, driver: "QtDriver"):
image_layout.setContentsMargins(0, 0, 0, 0)

self.open_file_action = QAction("Open file", self)
self.open_explorer_action = QAction("Open file in explorer", self)

system = platform.system()

if system == "Darwin":
self.open_explorer_action = QAction("Reveal file in Finder", self)
elif system == "Linux":
self.open_explorer_action = QAction("Open file in filesystem", self) # TODO: Rename to whatever the Linux explorer is
else:
self.open_explorer_action = QAction("Open file in explorer", self)

self.preview_img = QPushButtonWrapper()
self.preview_img.setMinimumSize(*self.img_button_size)
Expand Down
11 changes: 10 additions & 1 deletion tagstudio/src/qt/widgets/video_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging

from pathlib import Path
import platform
import typing

from PySide6.QtCore import (
Expand Down Expand Up @@ -129,7 +130,15 @@ def __init__(self, driver: "QtDriver") -> None:

open_file_action = QAction("Open file", self)
open_file_action.triggered.connect(self.opener.open_file)
open_explorer_action = QAction("Open file in explorer", self)

system = platform.system()
if system == "Darwin":
open_explorer_action = QAction("Reveal file in Finder", self)
elif system == "Linux":
open_explorer_action = QAction("Open file in filesystem", self) # TODO: Rename to whatever the Linux explorer is
else:
open_explorer_action = QAction("Open file in explorer", self)

open_explorer_action.triggered.connect(self.opener.open_explorer)
self.addAction(open_file_action)
self.addAction(open_explorer_action)
Expand Down