- remove common lib - split settings, remove common-md - move ipc interop/kb_layout to interop - rename core -> settings, settings -> old_settings - os-detect header-only; interop -> PowerToysInterop - split notifications, move single-use headers where they're used - winstore lib - rename com utils - rename Updating and Telemetry projects - rename core -> settings-ui and remove examples folder - rename settings-ui folder + consisent common/version include
23 lines
621 B
C++
23 lines
621 B
C++
#include "pch.h"
|
|
#include "BackgroundHandler.h"
|
|
#include "BackgroundHandler.g.cpp"
|
|
|
|
#include "handler_functions.h"
|
|
|
|
namespace winrt::BackgroundActivator::implementation
|
|
{
|
|
using Windows::ApplicationModel::Background::IBackgroundTaskInstance;
|
|
using Windows::UI::Notifications::ToastNotificationActionTriggerDetail;
|
|
|
|
void BackgroundHandler::Run(IBackgroundTaskInstance bti)
|
|
{
|
|
const auto details = bti.TriggerDetails().try_as<ToastNotificationActionTriggerDetail>();
|
|
if (!details)
|
|
{
|
|
return;
|
|
}
|
|
|
|
dispatch_to_background_handler(details.Argument());
|
|
}
|
|
}
|