2
0
Эх сурвалжийг харах

fixed app update notifications

LukePulverenti 12 жил өмнө
parent
commit
ed3ffc6c27

+ 2 - 0
MediaBrowser.Common.Implementations/BaseApplicationHost.cs

@@ -581,6 +581,8 @@ namespace MediaBrowser.Common.Implementations
             await PackageManager.InstallPackage(progress, package, cancellationToken).ConfigureAwait(false);
 
             EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = package.version }, Logger);
+
+            NotifyPendingRestart();
         }
 
         /// <summary>

+ 7 - 1
MediaBrowser.Common/IApplicationHost.cs

@@ -1,4 +1,5 @@
-using MediaBrowser.Common.Plugins;
+using MediaBrowser.Common.Events;
+using MediaBrowser.Common.Plugins;
 using MediaBrowser.Model.Updates;
 using System;
 using System.Collections.Generic;
@@ -12,6 +13,11 @@ namespace MediaBrowser.Common
     /// </summary>
     public interface IApplicationHost
     {
+        /// <summary>
+        /// Occurs when [application updated].
+        /// </summary>
+        event EventHandler<GenericEventArgs<Version>> ApplicationUpdated;
+
         /// <summary>
         /// Performs the pending restart.
         /// </summary>