added method to return project names from project list

This commit is contained in:
iLLiCiTiT 2021-12-08 12:59:21 +01:00
parent 347b8da8a7
commit 74b6da96ac

View file

@ -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():