Merge pull request #10625 from ilovepilav/fix-alerts-missing-from-admin-dashboard

Fix: Plugin Installed Alerts missing from Admin Dashboard #10620
This commit is contained in:
Joshua M. Boniface
2023-11-27 00:18:29 -05:00
committed by GitHub
2 changed files with 11 additions and 4 deletions

View File

@@ -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();
}