mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
workfiles tool emmit's 'before.workfile.save' and 'after.workfile.save' signals
This commit is contained in:
parent
1852161892
commit
7cb129e5a3
1 changed files with 4 additions and 0 deletions
|
|
@ -695,11 +695,15 @@ class FilesWidget(QtWidgets.QWidget):
|
|||
|
||||
file_path = os.path.join(self.root, work_file)
|
||||
|
||||
pipeline.emit("before.workfile.save", file_path)
|
||||
|
||||
self._enter_session() # Make sure we are in the right session
|
||||
self.host.save_file(file_path)
|
||||
|
||||
self.set_asset_task(self._asset, self._task)
|
||||
|
||||
pipeline.emit("after.workfile.save", file_path)
|
||||
|
||||
self.workfile_created.emit(file_path)
|
||||
|
||||
self.refresh()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue