Skip to content
Merged
Changes from all 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
3 changes: 3 additions & 0 deletions src/jabs/ui/main_window/video_list_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,13 @@ def _show_context_menu(self, pos: QtCore.QPoint) -> None:
# create and show the context menu at the mouse position
menu = QtWidgets.QMenu(self)
get_info_action = menu.addAction("Get Info")
copy_video_name_action = menu.addAction("Copy Video Name")
action = menu.exec(self._file_list.mapToGlobal(pos))

if action == get_info_action:
self._show_video_info(item.data(QtCore.Qt.ItemDataRole.UserRole))
elif action == copy_video_name_action:
QtWidgets.QApplication.clipboard().setText(item.data(QtCore.Qt.ItemDataRole.UserRole))

def _show_video_info(self, video_name: str) -> None:
"""Open the VideoInfoDialog for the given video.
Expand Down
Loading