mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added method to return project names from project list
This commit is contained in:
parent
347b8da8a7
commit
74b6da96ac
1 changed files with 7 additions and 0 deletions
|
|
@ -747,6 +747,13 @@ class ProjectListWidget(QtWidgets.QWidget):
|
|||
index, QtCore.QItemSelectionModel.SelectionFlag.SelectCurrent
|
||||
)
|
||||
|
||||
def get_project_names(self):
|
||||
output = []
|
||||
for row in range(self.project_proxy.rowCount()):
|
||||
index = self.project_proxy.index(row, 0)
|
||||
output.append(index.data(PROJECT_NAME_ROLE))
|
||||
return output
|
||||
|
||||
def refresh(self):
|
||||
selected_project = None
|
||||
for index in self.project_list.selectedIndexes():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue