mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removed activate_project and replaced with setting Session attribute
This commit is contained in:
parent
81b328977d
commit
c8a6837d89
1 changed files with 2 additions and 2 deletions
|
|
@ -240,7 +240,7 @@ class AssetWidget(QtWidgets.QWidget):
|
|||
self.combo_projects.clear()
|
||||
if len(projects) > 0:
|
||||
self.combo_projects.addItems(projects)
|
||||
self.dbcon.activate_project(projects[0])
|
||||
self.dbcon.Session["AVALON_PROJECT"] = projects[0]
|
||||
|
||||
def on_project_change(self):
|
||||
projects = list()
|
||||
|
|
@ -248,7 +248,7 @@ class AssetWidget(QtWidgets.QWidget):
|
|||
projects.append(project['name'])
|
||||
project_name = self.combo_projects.currentText()
|
||||
if project_name in projects:
|
||||
self.dbcon.activate_project(project_name)
|
||||
self.dbcon.Session["AVALON_PROJECT"] = project_name
|
||||
self.refresh()
|
||||
|
||||
def _refresh_model(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue