mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
use on_new as name of the function
This commit is contained in:
parent
7dadac74ac
commit
d25e8f508e
1 changed files with 2 additions and 3 deletions
|
|
@ -52,8 +52,7 @@ class MaxHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
|||
|
||||
self._has_been_setup = True
|
||||
|
||||
rt.callbacks.addScript(rt.Name('systemPostNew'),
|
||||
on_post_open)
|
||||
rt.callbacks.addScript(rt.Name('systemPostNew'), on_new)
|
||||
|
||||
rt.callbacks.addScript(rt.Name('filePostOpen'),
|
||||
lib.check_colorspace)
|
||||
|
|
@ -160,7 +159,7 @@ def ls() -> list:
|
|||
yield lib.read(container)
|
||||
|
||||
|
||||
def on_post_open():
|
||||
def on_new():
|
||||
lib.set_context_setting()
|
||||
rt.resetMaxFile(rt.Name("noPrompt"))
|
||||
rt.clearUndoBuffer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue