fixed app update notifications
This commit is contained in:
parent
f9e760cd90
commit
ed3ffc6c27
|
@ -581,6 +581,8 @@ namespace MediaBrowser.Common.Implementations
|
||||||
await PackageManager.InstallPackage(progress, package, cancellationToken).ConfigureAwait(false);
|
await PackageManager.InstallPackage(progress, package, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = package.version }, Logger);
|
EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = package.version }, Logger);
|
||||||
|
|
||||||
|
NotifyPendingRestart();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using MediaBrowser.Common.Plugins;
|
using MediaBrowser.Common.Events;
|
||||||
|
using MediaBrowser.Common.Plugins;
|
||||||
using MediaBrowser.Model.Updates;
|
using MediaBrowser.Model.Updates;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -12,6 +13,11 @@ namespace MediaBrowser.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IApplicationHost
|
public interface IApplicationHost
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Occurs when [application updated].
|
||||||
|
/// </summary>
|
||||||
|
event EventHandler<GenericEventArgs<Version>> ApplicationUpdated;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Performs the pending restart.
|
/// Performs the pending restart.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user