Added auto-save for graphs. Iteraion 1.

This commit is contained in:
Oleg Sh
2025-01-01 20:18:01 +01:00
parent 20b8377651
commit 7aa6eb8ed1
14 changed files with 400 additions and 37 deletions

View File

@@ -51,6 +51,8 @@ function handelImportGraph(files) {
var textFromFileLoaded = fileLoadedEvent.target.result;
console.log(textFromFileLoaded);
editor.application.LoadGraphFromString(textFromFileLoaded);
// Save graph to auto save after import.
editor.application.saveAutoSave(textFromFileLoaded);
ImportGraphFiles.value = "";
};