Update BasePlugin.cs
Plugins supporting di cannot be unloaded.
This commit is contained in:
parent
85d36a55a1
commit
7e939fa2cb
|
@ -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…
Reference in New Issue
Block a user