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

Method SendSuccess

FastCopy/Notification.cpp:40–51  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38 --------- ---------
39 */
40 void Notification::SendSuccess(winrt::hstring prompt, winrt::hstring destination)
41 {
42 if (!Settings{}.Get<bool>(Settings::Notify, true))
43 return;
44
45 winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder builder;
46 builder.AddText(prompt);
47
48 AddButtonTo(builder, L"Open", L"open", destination, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButtonStyle::Success);
49 AddButtonTo(builder, L"Dismiss");
50 winrt::Microsoft::Windows::AppNotifications::AppNotificationManager::Default().Show(builder.BuildNotification());
51 }
52
53 /**
54 <copied/moved/deleted> <num> / <total> items!

Callers

nothing calls this directly

Calls 1

AddButtonToFunction · 0.85

Tested by

no test coverage detected