From 722a5c35a3ac4f372a8f9db93bb202710bcbec19 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Sat, 6 Feb 2021 17:25:35 +0100 Subject: [PATCH] Fix some warnings --- DesktopNotifications.Apple/AppleNotificationManager.cs | 2 ++ DesktopNotifications.Windows/WindowsNotificationManager.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DesktopNotifications.Apple/AppleNotificationManager.cs b/DesktopNotifications.Apple/AppleNotificationManager.cs index d23263f..a65b15d 100644 --- a/DesktopNotifications.Apple/AppleNotificationManager.cs +++ b/DesktopNotifications.Apple/AppleNotificationManager.cs @@ -2,6 +2,8 @@ using System.Runtime.InteropServices; using System.Threading.Tasks; +#pragma warning disable 0067 + namespace DesktopNotifications.Apple { public class AppleNotificationManager : INotificationManager diff --git a/DesktopNotifications.Windows/WindowsNotificationManager.cs b/DesktopNotifications.Windows/WindowsNotificationManager.cs index 1f23cf2..cec85df 100644 --- a/DesktopNotifications.Windows/WindowsNotificationManager.cs +++ b/DesktopNotifications.Windows/WindowsNotificationManager.cs @@ -90,7 +90,7 @@ namespace DesktopNotifications.Windows //TODO: Lookup notification object from history? _notificationActivatedHandler.Invoke(this, - new NotificationActivatedEventArgs(null, _launchAction)); + new NotificationActivatedEventArgs(null!, _launchAction)); _launchAction = null; }