trying to get on startup working correctly

This commit is contained in:
Martin Barker
2023-11-07 00:43:10 +00:00
parent ac7e305de5
commit 6266bc65e7
4 changed files with 21 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@@ -1,4 +1,5 @@
// See https://aka.ms/new-console-template for more information
using Microsoft.Toolkit.Uwp.Notifications;
using System.Drawing;
using System.Reflection.Metadata;
using System.Runtime.InteropServices;
@@ -128,6 +129,10 @@ internal class Program
thread.Start();
Application.Run();
Application.ApplicationExit += (object? sender, EventArgs e) => {
ToastNotificationManagerCompat.Uninstall();
};
}
catch (Exception e) {
Logger.GetInstance().Writer.WriteLineAsync(e.ToString());