mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3505 from pypeclub/feature/settings_missing_extract_action
Settings UI: Add extract to file action on project view
This commit is contained in:
commit
47d39825c6
2 changed files with 9 additions and 0 deletions
|
|
@ -854,6 +854,9 @@ class ProjectWidget(SettingsCategoryWidget):
|
|||
project_list_widget.version_change_requested.connect(
|
||||
self._on_source_version_change
|
||||
)
|
||||
project_list_widget.extract_to_file_requested.connect(
|
||||
self._on_extract_to_file
|
||||
)
|
||||
|
||||
self.project_list_widget = project_list_widget
|
||||
|
||||
|
|
|
|||
|
|
@ -1008,6 +1008,7 @@ class ProjectSortFilterProxy(QtCore.QSortFilterProxyModel):
|
|||
class ProjectListWidget(QtWidgets.QWidget):
|
||||
project_changed = QtCore.Signal()
|
||||
version_change_requested = QtCore.Signal(str)
|
||||
extract_to_file_requested = QtCore.Signal()
|
||||
|
||||
def __init__(self, parent, only_active=False):
|
||||
self._parent = parent
|
||||
|
|
@ -1099,7 +1100,12 @@ class ProjectListWidget(QtWidgets.QWidget):
|
|||
self.version_change_requested
|
||||
)
|
||||
submenu.addAction(action)
|
||||
|
||||
extract_action = QtWidgets.QAction("Extract to file", menu)
|
||||
extract_action.triggered.connect(self.extract_to_file_requested)
|
||||
|
||||
menu.addMenu(submenu)
|
||||
menu.addAction(extract_action)
|
||||
menu.exec_(QtGui.QCursor.pos())
|
||||
|
||||
def on_item_clicked(self, new_index):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue