mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
renamed 'save_current_workfile' -> 'save_workfile'
This commit is contained in:
parent
6af7f906e5
commit
96218779a2
3 changed files with 6 additions and 6 deletions
|
|
@ -323,7 +323,7 @@ class IWorkfileHost:
|
|||
return []
|
||||
|
||||
@abstractmethod
|
||||
def save_current_workfile(self, dst_path=None):
|
||||
def save_workfile(self, dst_path=None):
|
||||
"""Save currently opened scene.
|
||||
|
||||
Args:
|
||||
|
|
@ -400,13 +400,13 @@ class IWorkfileHost:
|
|||
return self.get_workfile_extensions()
|
||||
|
||||
def save_file(self, dst_path=None):
|
||||
"""Deprecated variant of 'save_current_workfile'.
|
||||
"""Deprecated variant of 'save_workfile'.
|
||||
|
||||
Todo:
|
||||
Remove when all usages are replaced.
|
||||
"""
|
||||
|
||||
self.save_current_workfile()
|
||||
self.save_workfile()
|
||||
|
||||
def open_file(self, filepath):
|
||||
"""Deprecated variant of 'open_workfile'.
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class MayaHost(HostBase, IWorkfileHost, ILoadHost):
|
|||
def open_workfile(self, filepath):
|
||||
return open_file(filepath)
|
||||
|
||||
def save_current_workfile(self, filepath=None):
|
||||
def save_workfile(self, filepath=None):
|
||||
return save_file(filepath)
|
||||
|
||||
def work_root(self, session):
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ class FilesWidget(QtWidgets.QWidget):
|
|||
|
||||
# Save current scene, continue to open file
|
||||
if isinstance(host, IWorkfileHost):
|
||||
host.save_current_workfile(current_file)
|
||||
host.save_workfile(current_file)
|
||||
else:
|
||||
host.save_file(current_file)
|
||||
|
||||
|
|
@ -653,7 +653,7 @@ class FilesWidget(QtWidgets.QWidget):
|
|||
|
||||
if not self.published_enabled:
|
||||
if isinstance(self.host, IWorkfileHost):
|
||||
self.host.save_current_workfile(filepath)
|
||||
self.host.save_workfile(filepath)
|
||||
else:
|
||||
self.host.save_file(filepath)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue