From 76ec25df16629b17f7d2775f4d2a54db0d022428 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 27 Oct 2026 12:37:44 +0000 Subject: fix(bundle): automatically save changed documents before closing Co-Authored-By: Claude Opus 5.5 --- bundle/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundle/src/main.js') 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; -- cgit v1.3.1-4-g156e