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:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user