Merge branch 'fix/shell-notify': taskbar progress, OS notifications, shortcuts, job notices, badges, General settings

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-12 11:13:04 +00:00
commit 979a27e3d3
117 files changed
+1807 -190

No files matched your search

@@ -700,6 +700,7 @@ public sealed class LibraryViewModel : SectionViewModel
_hasArchive = (await _db.Archives.ListAsync()).Count > 0;
Shell.SetLibraryTotals(stats.Sequences, stats.Photos, stats.Bytes);
_localStats = stats;
await CountWarningsAsync();
_suppressReload = true;
var tag = _tag.Value;
@@ -1025,6 +1026,8 @@ public sealed class LibraryViewModel : SectionViewModel
if (job.Kind is JobKind.Scan or JobKind.Rebuild or JobKind.Import or JobKind.Adopt or JobKind.Move or JobKind.UploadCommit
|| SyncService.TransferKind(job) is SyncTransferKind.DownloadOriginals or SyncTransferKind.GetExports)
await RefreshAsync();
else if (job.Kind is JobKind.LightAnalyse or JobKind.DeepAnalyse)
await CountWarningsAsync();
}
catch (DatabaseException ex)
{
@@ -1032,6 +1035,15 @@ public sealed class LibraryViewModel : SectionViewModel
}
}
/// <summary>
/// The rail badge counts the sequences of this PC with warnings (BRIEF §12.1 "badge counts (warnings, …)"), the
/// ones the Warnings filter shows; analyses change it.
/// </summary>
private async Task CountWarningsAsync()
{
if (_db is not null) Badge = await _db.Sequences.CountAsync(new SequenceQuery { WithStatus = SequenceStatus.HasWarnings });
}
/// <summary>Open: the editor for a sequence here; for a remote card, with proxies (fetched first when this PC has none).</summary>
private async Task OpenAsync(SequenceItem item)
{