[139] Cmd/Strg+S speichert, +Shift+S speichert unter, Teilen auf Cmd/Strg+Shift+J

This commit is contained in:
Claude committed 2026-11-05 12:41:06 +00:00
1 parent b082064331
commit 7e968b6b1a
12 files changed
+54 -13

No files matched your search

+8
View File
@@ -124,7 +124,15 @@ export async function saveProjectFile(
json: string,
projectName: string,
onSavedPath?: (path: string) => void,
knownPath?: string | null,
): Promise<boolean> {
// „Speichern" (Cmd/Ctrl+S): bekannter Pfad → ohne Dialog atomar überschreiben.
if (knownPath && isTauriRuntime()) {
const { writeFileAtomic } = await import("./saveFile");
await writeFileAtomic(knownPath, json);
onSavedPath?.(knownPath);
return true;
}
const filename = `${projectName || "projekt"}.${PROJECT_EXT}`;
return saveTextFile(json, filename, "application/json", PROJECT_DIALOG_FILTERS, onSavedPath, true);
}