This commit is contained in:
49lf
2024-07-31 15:31:55 -04:00
parent 53467ee954
commit 638217311b
17 changed files with 298 additions and 218 deletions

View File

@ -30,7 +30,10 @@ const save_ = async (file: ModelingAppFile) => {
if (filePathMeta.canceled) return
// Write the file.
await window.electron.writeFile(filePathMeta.filePath, new Uint8Array(file.contents))
await window.electron.writeFile(
filePathMeta.filePath,
new Uint8Array(file.contents)
)
} else {
// Download the file to the user's computer.
// Now we need to download the files to the user's downloads folder.