Skip to content

Commit 58de625

Browse files
committed
Do not validate plugin settings & cache path
1 parent 012ef49 commit 58de625

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ public static void LoadPlugins(PluginsSettings settings)
152152
Settings = settings;
153153
Settings.UpdatePluginSettings(_metadatas);
154154
AllPlugins = PluginsLoader.Plugins(_metadatas, Settings);
155-
UpdateAndValidatePluginDirectory(_metadatas);
155+
UpdatePluginDirectory(_metadatas);
156156
}
157157

158-
private static void UpdateAndValidatePluginDirectory(List<PluginMetadata> metadatas)
158+
private static void UpdatePluginDirectory(List<PluginMetadata> metadatas)
159159
{
160160
foreach (var metadata in metadatas)
161161
{
@@ -169,9 +169,6 @@ private static void UpdateAndValidatePluginDirectory(List<PluginMetadata> metada
169169
metadata.PluginSettingsDirectoryPath = Path.Combine(DataLocation.PluginSettingsDirectory, metadata.Name);
170170
metadata.PluginCacheDirectoryPath = Path.Combine(DataLocation.PluginCacheDirectory, metadata.Name);
171171
}
172-
173-
Helper.ValidateDirectory(metadata.PluginSettingsDirectoryPath);
174-
Helper.ValidateDirectory(metadata.PluginCacheDirectoryPath);
175172
}
176173
}
177174

Flow.Launcher.Plugin/PluginMetadata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ internal set
123123
public int QueryCount { get; set; }
124124

125125
/// <summary>
126-
/// The path to the plugin settings directory.
126+
/// The path to the plugin settings directory which is not validated.
127127
/// It is used to store plugin settings files and data files.
128128
/// When plugin is deleted, FL will ask users whether to keep its settings.
129129
/// If users do not want to keep, this directory will be deleted.
@@ -132,7 +132,7 @@ internal set
132132
public string PluginSettingsDirectoryPath { get; internal set; }
133133

134134
/// <summary>
135-
/// The path to the plugin cache directory.
135+
/// The path to the plugin cache directory which is not validated.
136136
/// It is used to store cache files.
137137
/// When plugin is deleted, this directory will be deleted as well.
138138
/// </summary>

0 commit comments

Comments
 (0)