mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added none project to project model
This commit is contained in:
parent
03cb11d091
commit
3e58532a42
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,11 @@ class ProjectModel(QtGui.QStandardItemModel):
|
|||
self.dbcon.Session["AVALON_PROJECT"] = None
|
||||
|
||||
project_items = []
|
||||
|
||||
none_project = QtGui.QStandardItem("< Select Project >")
|
||||
none_project.setData(None)
|
||||
project_items.append(none_project)
|
||||
|
||||
database = self.dbcon.database
|
||||
project_names = set()
|
||||
for project_name in database.collection_names():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue