Skip to content

Commit a29ed64

Browse files
committed
Use metadata for plugin settings directory
1 parent a0c2a42 commit a29ed64

File tree

1 file changed

+2
-4
lines changed
  • Plugins/Flow.Launcher.Plugin.WebSearch

1 file changed

+2
-4
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/Main.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Threading.Tasks;
77
using System.Windows.Controls;
88
using Flow.Launcher.Infrastructure;
9-
using Flow.Launcher.Infrastructure.UserSettings;
109
using Flow.Launcher.Plugin.SharedCommands;
1110

1211
namespace Flow.Launcher.Plugin.WebSearch
@@ -183,9 +182,8 @@ void Init()
183182
DefaultImagesDirectory = Path.Combine(pluginDirectory, Images);
184183
Helper.ValidateDataDirectory(bundledImagesDirectory, DefaultImagesDirectory);
185184

186-
// Custom images directory is in the WebSearch's data location folder
187-
var name = Path.GetFileNameWithoutExtension(_context.CurrentPluginMetadata.ExecuteFileName);
188-
CustomImagesDirectory = Path.Combine(DataLocation.PluginSettingsDirectory, name, "CustomIcons");
185+
// Custom images directory is in the WebSearch's data location folder
186+
CustomImagesDirectory = Path.Combine(_context.CurrentPluginMetadata.PluginSettingsDirectoryPath, "CustomIcons");
189187
};
190188
}
191189

0 commit comments

Comments
 (0)