Do not validate plugin settings & cache path

This commit is contained in:
Jack251970 2025-02-24 14:14:19 +08:00
parent 012ef494e1
commit 58de62565a
2 changed files with 4 additions and 7 deletions

View file

@ -152,10 +152,10 @@ namespace Flow.Launcher.Core.Plugin
Settings = settings;
Settings.UpdatePluginSettings(_metadatas);
AllPlugins = PluginsLoader.Plugins(_metadatas, Settings);
UpdateAndValidatePluginDirectory(_metadatas);
UpdatePluginDirectory(_metadatas);
}
private static void UpdateAndValidatePluginDirectory(List<PluginMetadata> metadatas)
private static void UpdatePluginDirectory(List<PluginMetadata> metadatas)
{
foreach (var metadata in metadatas)
{
@ -169,9 +169,6 @@ namespace Flow.Launcher.Core.Plugin
metadata.PluginSettingsDirectoryPath = Path.Combine(DataLocation.PluginSettingsDirectory, metadata.Name);
metadata.PluginCacheDirectoryPath = Path.Combine(DataLocation.PluginCacheDirectory, metadata.Name);
}
Helper.ValidateDirectory(metadata.PluginSettingsDirectoryPath);
Helper.ValidateDirectory(metadata.PluginCacheDirectoryPath);
}
}

View file

@ -123,7 +123,7 @@ namespace Flow.Launcher.Plugin
public int QueryCount { get; set; }
/// <summary>
/// The path to the plugin settings directory.
/// The path to the plugin settings directory which is not validated.
/// It is used to store plugin settings files and data files.
/// When plugin is deleted, FL will ask users whether to keep its settings.
/// If users do not want to keep, this directory will be deleted.
@ -132,7 +132,7 @@ namespace Flow.Launcher.Plugin
public string PluginSettingsDirectoryPath { get; internal set; }
/// <summary>
/// The path to the plugin cache directory.
/// The path to the plugin cache directory which is not validated.
/// It is used to store cache files.
/// When plugin is deleted, this directory will be deleted as well.
/// </summary>