mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
refresh project after save
This commit is contained in:
parent
0739ee5a3a
commit
1d4dd107d3
1 changed files with 7 additions and 0 deletions
|
|
@ -131,6 +131,11 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
def _reset_root_item(self):
|
||||
self._root_item = RootItem(self)
|
||||
|
||||
def refresh_project(self):
|
||||
project_name = self._current_project
|
||||
self._current_project = None
|
||||
self.set_project(project_name)
|
||||
|
||||
def set_project(self, project_name):
|
||||
if self._current_project == project_name:
|
||||
return
|
||||
|
|
@ -1000,6 +1005,8 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
if bulk_writes:
|
||||
project_col.bulk_write(bulk_writes)
|
||||
|
||||
self.refresh_project()
|
||||
|
||||
|
||||
class BaseItem:
|
||||
columns = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue