Update BasePlugin.cs

Plugins supporting di cannot be unloaded.
pull/4253/head
BaronGreenback 4 years ago committed by GitHub
parent 85d36a55a1
commit 7e939fa2cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,8 @@ namespace MediaBrowser.Common.Plugins
/// Gets a value indicating whether the plugin can be uninstalled.
/// </summary>
public bool CanUninstall => !Path.GetDirectoryName(AssemblyFilePath)
.Equals(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), StringComparison.InvariantCulture);
.Equals(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), StringComparison.InvariantCulture) &&
!typeof(IPluginRegistrar).IsAssignableFrom(typeof(this));
/// <summary>
/// Gets the plugin info.

Loading…
Cancel
Save