fix code not executing tauri project load (#2165)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-18 12:40:05 -07:00
committed by GitHub
parent ac140c054f
commit 38d9b5d4b4
3 changed files with 14 additions and 1 deletions

View File

@ -101,6 +101,8 @@ export const fileLoader: LoaderFunction = async ({
path: projectPath,
})
// Update both the state and the editor's code.
// We explicitly do not write to the file here since we are loading from
// the file system and not the editor.
codeManager.updateCodeStateEditor(code)
kclManager.executeCode(true)