Successfully items! --------- --------- | Open | | Dismiss| --------- --------- */
| 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! |
nothing calls this directly
no test coverage detected