aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÇağrı Sakaoğlu <cagrisakaoglu@gmail.com>2023-11-26 00:25:52 +0000
committerÇağrı Sakaoğlu <cagrisakaoglu@gmail.com>2023-11-26 13:20:31 +0000
commit435c1431401b3b765ea46e45f29bda6eb879a998 (patch)
tree6f541a417f091f84c5dc698fed396d52669ddb32
parent0be2817ccb5136746dc8e576d8ff05fb48ee5e29 (diff)
Fix:Plugin Installed Alerts missing from Admin Dashboard #10620
-rw-r--r--CONTRIBUTORS.md3
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs12
2 files changed, 11 insertions, 4 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 571da95bb..d208879d1 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -173,6 +173,7 @@
- [scampower3](https://github.com/scampower3)
- [Chris-Codes-It] (https://github.com/Chris-Codes-It)
- [Pithaya](https://github.com/Pithaya)
+ - [Çağrı Sakaoğlu](https://github.com/ilovepilav)
# Emby Contributors
@@ -243,4 +244,4 @@
- [Jakob Kukla](https://github.com/jakobkukla)
- [Utku Özdemir](https://github.com/utkuozdemir)
- [JPUC1143](https://github.com/Jpuc1143/)
- - [0x25CBFC4F](https://github.com/0x25CBFC4F) \ No newline at end of file
+ - [0x25CBFC4F](https://github.com/0x25CBFC4F)
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();
}