Update MediaBrowser.Common/Plugins/BasePlugin.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
BaronGreenback 2020-11-09 11:25:42 +00:00 committed by GitHub
parent 11a5353810
commit 429de72443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +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) &&
!typeof(IPluginServiceRegistrator).IsAssignableFrom(this.GetType());
.Equals(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), StringComparison.InvariantCulture)
&& !typeof(IPluginServiceRegistrator).IsAssignableFrom(this.GetType());
/// <summary>
/// Gets the plugin info.