fix(app): store the editor's last edit before the main window closes

The project is saved a moment after each change; closing the window during
that moment now waits for the save (once per window, also when another
section is showing). EditorSession.HasPendingSave reports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 17:39:26 +00:00
1 parent b2b36d5c57
commit 596b748c5c
5 files changed
+47 -1

No files matched your search

@@ -51,6 +51,9 @@ public sealed class SequenceViewModel : SectionViewModel
public bool IsEmpty => _editor is null && !_isLoading;
/// <summary>The open sequence has an edit not stored yet (the save follows each change after a moment).</summary>
public bool HasPendingSave => _editor?.Session.HasPendingSave == true;
/// <summary>"Titano — Harbour sunset" while a sequence is open.</summary>
public override string Title => _editor?.Title ?? Label;