refresh timeline on new file

This commit is contained in:
Skyler Lehmkuhl 2024-12-06 01:27:36 -05:00
parent af26bd1eeb
commit abede6586e
1 changed files with 2 additions and 1 deletions

View File

@ -1954,12 +1954,13 @@ function _newFile(width, height, fps) {
stage.style.height = `${height}px` stage.style.height = `${height}px`
} }
updateUI() updateUI()
updateLayers()
updateMenu()
} }
async function newFile() { async function newFile() {
if (await confirmDialog("Create a new file? Unsaved work will be lost.", {title: "New file", kind: "warning"})) { if (await confirmDialog("Create a new file? Unsaved work will be lost.", {title: "New file", kind: "warning"})) {
showNewFileDialog() showNewFileDialog()
// updateUI()
} }
} }