mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
only reset max file and clear undo buffer when there is unsaved change before starting new scene
This commit is contained in:
parent
d25e8f508e
commit
36cbdcfde7
1 changed files with 3 additions and 2 deletions
|
|
@ -161,8 +161,9 @@ def ls() -> list:
|
|||
|
||||
def on_new():
|
||||
lib.set_context_setting()
|
||||
rt.resetMaxFile(rt.Name("noPrompt"))
|
||||
rt.clearUndoBuffer()
|
||||
if rt.checkForSave():
|
||||
rt.resetMaxFile(rt.Name("noPrompt"))
|
||||
rt.clearUndoBuffer()
|
||||
|
||||
|
||||
def containerise(name: str, nodes: list, context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue