MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / SendFailed

Function SendFailed

FastCopy/Notification.cpp:59–68  ·  view source on GitHub ↗

/ items! --------- --------- --------- | Open | | Retry | | Dismiss | --------- --------- --------- */

Source from the content-addressed store, hash-verified

57 --------- --------- ---------
58 */
59 void SendFailed(winrt::hstring prompt, winrt::hstring destination)
60 {
61 winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder builder;
62 builder.AddText(prompt);
63
64 AddButtonTo(builder, L"Open", L"open", destination, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButtonStyle::Critical);
65 AddButtonTo(builder, L"Retry", L"retry", destination);
66 AddButtonTo(builder, L"Dismiss");
67 winrt::Microsoft::Windows::AppNotifications::AppNotificationManager::Default().Show(builder.BuildNotification());
68 }
69}

Callers

nothing calls this directly

Calls 1

AddButtonToFunction · 0.85

Tested by

no test coverage detected