test(app): editor history, saver retry, merge, preview re-solve and capture scenes
- Tests for undo after adopted changes, run ending, saver retries and stop, the local source refusing unsaved writes, re-solves without decoding and equal to a fresh preparation, 1:1 pictures, waveform, crop margins and the values of the Optimise toast; the Windows smoke test checks Render, Batch, the waveform, 1:1, the window title and the hidden idle job bar. - The capture sample has a manual value and camera keyframes; the capture adds the overlays, the waveform, the Optimise toast and Export.html's tool state. - Crop margins live in a WPF-free class; a discarded change stops retrying. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
15 files changed
+462
-53
No files matched your search
@@ -156,11 +156,15 @@ public sealed class EditorSession : IAsyncDisposable
|
||||
/// <summary>Stores pending changes now; false when the save failed (the change stays pending and is retried).</summary>
|
||||
public Task<bool> FlushAsync() => _saver.FlushAsync();
|
||||
|
||||
/// <summary>Stores what is pending one last time and releases the source; callers that must not lose an edit flush and ask first.</summary>
|
||||
/// <summary>
|
||||
/// Stores what is pending one last time, stops retrying and releases the source; callers that must not lose an edit
|
||||
/// flush and ask first (<c>SequenceViewModel.ConfirmCloseAsync</c>).
|
||||
/// </summary>
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
History.Changed -= OnProjectChanged;
|
||||
if (!await _saver.FlushAsync()) Log.Warning("editor", $"The last change of {Content.Sequence.DisplayTitle} was not saved", _saver.LastError);
|
||||
_saver.Stop();
|
||||
await Source.DisposeAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user