File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Flow.Launcher.Infrastructure/UserSettings
Plugins/Flow.Launcher.Plugin.WebSearch Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ public static bool PortableDataLocationInUse()
30
30
}
31
31
32
32
public static readonly string PluginsDirectory = Path . Combine ( DataDirectory ( ) , Constant . Plugins ) ;
33
- public static readonly string SettingsDirectory = Path . Combine ( DataDirectory ( ) , "Settings" ) ;
34
- public static readonly string PluginSettingsDirectory = Path . Combine ( SettingsDirectory , Constant . Plugins ) ;
33
+ public static readonly string PluginSettingsDirectory = Path . Combine ( DataDirectory ( ) , "Settings" , Constant . Plugins ) ;
35
34
}
36
35
}
Original file line number Diff line number Diff line change @@ -174,11 +174,14 @@ public void Init(PluginInitContext context)
174
174
_context = context ;
175
175
var pluginDirectory = _context . CurrentPluginMetadata . PluginDirectory ;
176
176
var bundledImagesDirectory = Path . Combine ( pluginDirectory , Images ) ;
177
+
178
+ // Default images directory is in the WebSearch's application folder
177
179
DefaultImagesDirectory = Path . Combine ( _context . CurrentPluginMetadata . PluginDirectory , Images ) ;
178
180
Helper . ValidateDataDirectory ( bundledImagesDirectory , DefaultImagesDirectory ) ;
179
181
182
+ // Custom images directory is in the WebSearch's data location folder
180
183
var name = Path . GetFileNameWithoutExtension ( _context . CurrentPluginMetadata . ExecuteFileName ) ;
181
- CustomImagesDirectory = Path . Combine ( DataLocation . PluginSettingsDirectory , $ " { name } \\ CustomIcons") ;
184
+ CustomImagesDirectory = Path . Combine ( DataLocation . PluginSettingsDirectory , name , " CustomIcons") ;
182
185
}
183
186
184
187
#region ISettingProvider Members
You can’t perform that action at this time.
0 commit comments