Skip to content

Commit

Permalink
added method to return project names from project list
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 8, 2021
1 parent 347b8da commit 74b6da9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openpype/tools/settings/settings/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,13 @@ def select_project(self, project_name):
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():
Expand Down

0 comments on commit 74b6da9

Please sign in to comment.