diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-27 12:37:44 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-27 12:37:44 +0000 |
| commit | 76ec25df16629b17f7d2775f4d2a54db0d022428 (patch) | |
| tree | 6c1cdbb227c52598389c1aff0e59f0e4680982f9 /bundle/src | |
| parent | 30178981f487c225901f404040c027d4d1f49fea (diff) | |
fix(bundle): automatically save changed documents before closing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bundle/src')
| -rw-r--r-- | bundle/src/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/src/main.js b/bundle/src/main.js index 6734bc4..971816e 100644 --- a/bundle/src/main.js +++ b/bundle/src/main.js @@ -190,7 +190,7 @@ try { if (running) await invoke('stop_run'); // Finish any pending save/open or stopped run before closing the document. await actionDone; - if (!await canReplace()) return; + if (dirty() && !await saveFile()) return; await window.destroy(); } catch (error) { report(error); } finally { closing = false; |
