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

Method launchByToastNotification

FastCopy/App.xaml.cpp:82–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void 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
101bool App::isLaunchSettings()
102{

Callers

nothing calls this directly

Calls 1

ParseToastArgumentFunction · 0.85

Tested by

no test coverage detected