fix(app): failure toasts are announced at once

Shell.Notify takes isError; every toast that reports a failure or a refusal
sets it (archive actions and fixes, sync, settings import and cache, proxy
fetch, welcome folder check, card check, erase, format and eject). The
Uploader marks its unexpected-error, sign-out and choose-a-sequence toasts.

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-06 20:56:08 +00:00
1 parent 37ed91500d
commit a09ef98eac
9 files changed
+27 -20

No files matched your search

+6 -2
View File
@@ -257,8 +257,11 @@ public sealed class ShellViewModel : LocalizedViewModel
if (e.PropertyName is nameof(SectionViewModel.Title) or "" or null) OnPropertyChanged(nameof(WindowTitle));
}
/// <summary>A one-line notice with one action (job done, update available).</summary>
public void Notify(string title, string? message = null, string? actionText = null, string? actionToolTip = null, Action? action = null) =>
/// <summary>
/// A one-line notice with one action (job done, update available). <paramref name="isError"/> marks something that
/// did not happen or failed: screen readers then say it at once instead of after what they are reading.
/// </summary>
public void Notify(string title, string? message = null, string? actionText = null, string? actionToolTip = null, Action? action = null, bool isError = false) =>
ShowToast(new Toast
{
Title = title,
@@ -266,6 +269,7 @@ public sealed class ShellViewModel : LocalizedViewModel
ActionText = actionText,
ActionToolTip = actionToolTip,
ActionCommand = action is null ? null : new RelayCommand(action),
IsError = isError,
});
/// <summary>Errors are one sentence saying what happened plus one action (BRIEF §0.2 rule 6); the details go to the log.</summary>