| 80 | } |
| 81 | |
| 82 | void App::launchByToastNotification(winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments const& args) |
| 83 | { |
| 84 | auto argument = args |
| 85 | .Data() |
| 86 | .as<winrt::Windows::ApplicationModel::Activation::ToastNotificationActivatedEventArgs>() |
| 87 | .Argument(); |
| 88 | |
| 89 | if (argument.empty()) |
| 90 | exit(-1); //dismiss |
| 91 | |
| 92 | auto const [action, arg] = ParseToastArgument(argument); |
| 93 | if (action == L"open") |
| 94 | { |
| 95 | winrt::Windows::System::Launcher::LaunchUriAsync(winrt::Windows::Foundation::Uri{ arg }); |
| 96 | } |
| 97 | |
| 98 | exit(0); |
| 99 | } |
| 100 | |
| 101 | bool App::isLaunchSettings() |
| 102 | { |
nothing calls this directly
no test coverage detected