diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2023-11-27 00:18:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 00:18:29 -0500 |
| commit | 2f6536e34b2844c96033c3d7ee853f70d4a6351f (patch) | |
| tree | aa2748f882ecc791150fef88662f4d21660ff7ec /Emby.Server.Implementations/Updates/InstallationManager.cs | |
| parent | 099632f37e559c1aad4944fb328600a242679988 (diff) | |
| parent | 435c1431401b3b765ea46e45f29bda6eb879a998 (diff) | |
Merge pull request #10625 from ilovepilav/fix-alerts-missing-from-admin-dashboard
Fix: Plugin Installed Alerts missing from Admin Dashboard #10620
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index b31b4116d..15c4cfdf0 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -321,9 +321,15 @@ namespace Emby.Server.Implementations.Updates } _completedInstallationsInternal.Add(package); - await _eventManager.PublishAsync(isUpdate - ? (GenericEventArgs<InstallationInfo>)new PluginUpdatedEventArgs(package) - : new PluginInstalledEventArgs(package)).ConfigureAwait(false); + + if (isUpdate) + { + await _eventManager.PublishAsync(new PluginUpdatedEventArgs(package)).ConfigureAwait(false); + } + else + { + await _eventManager.PublishAsync(new PluginInstalledEventArgs(package)).ConfigureAwait(false); + } _applicationHost.NotifyPendingRestart(); } |
