Skip to content

Commit f1b5e68

Browse files
committed
Remove reflection codes for deleting csharp plugin settings
1 parent 5919418 commit f1b5e68

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,14 +548,10 @@ internal static void UninstallPlugin(PluginMetadata plugin, bool removePluginFro
548548
{
549549
if (AllowedLanguage.IsDotNet(plugin.Language)) // for the plugin in .NET, we can use assembly loader
550550
{
551-
var assemblyLoader = new PluginAssemblyLoader(plugin.ExecuteFilePath);
552-
var assembly = assemblyLoader.LoadAssemblyAndDependencies();
553-
var assemblyName = assembly.GetName().Name;
554-
555551
// if user want to remove the plugin settings, we cannot call save method for the plugin json storage instance of this plugin
556552
// so we need to remove it from the api instance
557553
var method = API.GetType().GetMethod("RemovePluginSettings");
558-
var pluginJsonStorage = method?.Invoke(API, new object[] { assemblyName });
554+
var pluginJsonStorage = method?.Invoke(API, new object[] { plugin.AssemblyName });
559555

560556
// if there exists a json storage for current plugin, we need to delete the directory path
561557
if (pluginJsonStorage != null)

0 commit comments

Comments
 (0)