Browse Source

Update BasePlugin.cs

BaronGreenback 4 years ago
parent
commit
51996cd34d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      MediaBrowser.Common/Plugins/BasePlugin.cs

+ 1 - 2
MediaBrowser.Common/Plugins/BasePlugin.cs

@@ -56,8 +56,7 @@ namespace MediaBrowser.Common.Plugins
         /// Gets a value indicating whether the plugin can be uninstalled.
         /// Gets a value indicating whether the plugin can be uninstalled.
         /// </summary>
         /// </summary>
         public bool CanUninstall => !Path.GetDirectoryName(AssemblyFilePath)
         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);
 
 
         /// <summary>
         /// <summary>
         /// Gets the plugin info.
         /// Gets the plugin info.