fix(jobs): announce every finished render once and open every target
A finished render's toast is claimed once (JobsViewModel.ClaimRenderToast): the editor that followed the render to its end says it with its output, also when the sequence cannot be read again (then without Show in folder) or the editor closed meanwhile; any other render is said by the Jobs screen. Before, the Jobs screen stayed silent whenever an editor had the sequence open, so a failed reload or a render the editor did not follow ended without a completion toast. Open on a job over several sequences (toast, Windows notification, Jobs row) shows the Library with every one of them selected, clearing a search or filter that hides one and reading pages until each is listed, instead of opening the first in the editor. 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
+174
-31
No files matched your search
@@ -111,7 +111,15 @@ internal sealed class FakeSequenceSource(SyntheticSequence sequence, SequenceCon
|
||||
/// <summary>Awaited by every decode (tests of cancellation).</summary>
|
||||
public Task DecodeGate { get; set; } = Task.CompletedTask;
|
||||
|
||||
public Task<SequenceContent> LoadAsync(CancellationToken cancellationToken) => Task.FromResult(Content with { Project = Stored });
|
||||
/// <summary>Thrown by the next load (the sequence read again after a job).</summary>
|
||||
public Exception? FailNextLoad { get; set; }
|
||||
|
||||
public Task<SequenceContent> LoadAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
if (FailNextLoad is not { } failure) return Task.FromResult(Content with { Project = Stored });
|
||||
FailNextLoad = null;
|
||||
return Task.FromException<SequenceContent>(failure);
|
||||
}
|
||||
|
||||
public async ValueTask<ImageBuffer?> DecodeAsync(int index, int maxLongEdge, DecodePurpose purpose, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user