From c4cdcb73fc0bedcc7fd576fca852cb759b83173e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 27 Nov 2023 00:18:29 -0500 Subject: [PATCH] Merge pull request #10625 from ilovepilav/fix-alerts-missing-from-admin-dashboard Fix: Plugin Installed Alerts missing from Admin Dashboard #10620 (cherry picked from commit 2f6536e34b2844c96033c3d7ee853f70d4a6351f) Signed-off-by: Joshua M. Boniface --- CONTRIBUTORS.md | 4 ++++ .../Updates/InstallationManager.cs | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9e2da36699..0d93846ead 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -161,6 +161,7 @@ - [MinecraftPlaye](https://github.com/MinecraftPlaye) - [RealGreenDragon](https://github.com/RealGreenDragon) - [TheTyrius](https://github.com/TheTyrius) + - [Çağrı Sakaoğlu](https://github.com/ilovepilav) # Emby Contributors @@ -229,3 +230,6 @@ - [gnuyent](https://github.com/gnuyent) - [Matthew Jones](https://github.com/matthew-jones-uk) - [Jakob Kukla](https://github.com/jakobkukla) + - [Utku Özdemir](https://github.com/utkuozdemir) + - [JPUC1143](https://github.com/Jpuc1143/) + - [0x25CBFC4F](https://github.com/0x25CBFC4F) diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index 40c386e823..c81734164d 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -324,9 +324,15 @@ namespace Emby.Server.Implementations.Updates } _completedInstallationsInternal.Add(package); - await _eventManager.PublishAsync(isUpdate - ? (GenericEventArgs)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(); }