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-tauri/src/main.rs | |
| 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-tauri/src/main.rs')
| -rw-r--r-- | bundle/src-tauri/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/src-tauri/src/main.rs b/bundle/src-tauri/src/main.rs index 7dbccd9..c9babb4 100644 --- a/bundle/src-tauri/src/main.rs +++ b/bundle/src-tauri/src/main.rs @@ -102,7 +102,7 @@ fn main() { .on_menu_event(|app, event| { let mut windows = app.webview_windows().into_values(); if event.id() == "quit" { - // Each window runs its unsaved-changes prompt; the app exits after the last. + // Each window saves changes before closing; the app exits after the last. windows.for_each(|window| drop(window.close())); } else if let Some(window) = windows.find(|window| window.is_focused().unwrap_or(false)) { |
