OSDN Git Service

OpenTween v2.4.2 リリース
[opentween/open-tween.git] / OpenTween / Growl.cs
index b4abd3f..70efc4d 100644 (file)
@@ -69,7 +69,7 @@ namespace OpenTween
             }
         }
 
-        public event EventHandler<NotifyCallbackEventArgs> NotifyClicked;
+        public event EventHandler<NotifyCallbackEventArgs>? NotifyClicked;
 
         public string AppName { get; }
 
@@ -268,7 +268,7 @@ namespace OpenTween
             };
 
             object? n;
-            if (icon != null || !string.IsNullOrEmpty(url))
+            if (icon != null || !MyCommon.IsNullOrEmpty(url))
             {
                 var gCore = _core!.GetType("Growl.CoreLibrary.Resource");
                 object? res;
@@ -323,7 +323,6 @@ namespace OpenTween
                                       text},
                         CultureInfo.InvariantCulture);
             }
-            //_targetConnector.GetType.InvokeMember("Notify", BindingFlags.InvokeMethod, null, _targetConnector, new object[] {n});
             var cc = _connector.GetType("Growl.Connector.CallbackContext").InvokeMember(
                 null, BindingFlags.CreateInstance, null, _connector,
                 new object[] { "some fake information", notificationName },