From 7fb94411c6f49c940372be977a37369549e25434 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Tue, 27 Aug 2024 23:37:22 +0800 Subject: [PATCH] cancel notification --- GZStudio/Activation/AppNotificationActivationHandler.cs | 2 +- GZStudio/App.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GZStudio/Activation/AppNotificationActivationHandler.cs b/GZStudio/Activation/AppNotificationActivationHandler.cs index 5e7ed62..84eebe4 100644 --- a/GZStudio/Activation/AppNotificationActivationHandler.cs +++ b/GZStudio/Activation/AppNotificationActivationHandler.cs @@ -43,7 +43,7 @@ public class AppNotificationActivationHandler : ActivationHandler { - App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation"); + App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation"); }); await Task.CompletedTask; diff --git a/GZStudio/App.xaml.cs b/GZStudio/App.xaml.cs index 70e846a..d96168b 100644 --- a/GZStudio/App.xaml.cs +++ b/GZStudio/App.xaml.cs @@ -98,8 +98,8 @@ public partial class App : Application protected async override void OnLaunched(LaunchActivatedEventArgs args) { base.OnLaunched(args); - - App.GetService().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory)); + // cancel notification + // App.GetService().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory)); await App.GetService().ActivateAsync(args); }