src\Aspire.Tray\Common\TrayPanel.cs (12)
135public PanelConfirmKind? Confirmation => _confirm?.Kind;
238BeginConfirm(new(PanelConfirmKind.RemoveMissing, PanelSection.Recent, host));
548PanelConfirmKind.ClearRecent => new(PanelTargetKind.ClearRecent, confirm.Section, null),
690BeginConfirm(new(PanelConfirmKind.ClearRecent, PanelSection.Recent, null));
700PanelConfirmKind.ClearRecent => new(PanelActionKind.ClearRecent, Anchor: target.Bounds),
768if (section == PanelSection.Recent && _confirm is { Kind: PanelConfirmKind.ClearRecent })
782var confirming = _confirm is { Kind: PanelConfirmKind.RemoveMissing } confirm
1194PanelConfirmKind.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1197var valid = confirm.Kind == PanelConfirmKind.ClearRecent ? _state.CanClearRecent : current is not null;
1222PanelConfirmKind.ClearRecent => ("Clear recent AppHosts?", "Pinned AppHosts are kept.", "Clear", "Clear recent AppHosts"),
1230Truncation: confirm.Kind == PanelConfirmKind.RemoveMissing ? PanelTruncation.Middle : PanelTruncation.End));
1484private sealed record PanelConfirm(PanelConfirmKind Kind, PanelSection Section, AppHostMenuItem? Host);