Skip to content

Commit 6561253

Browse files
committed
ensure latest only when using Flow's env setup
1 parent 4e48c3e commit 6561253

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher.Core/ExternalPlugins/Environments/AbstractPluginEnvironment.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ internal IEnumerable<PluginPair> Setup()
4545

4646
if (!string.IsNullOrEmpty(PluginsSettingsFilePath) && FilesFolders.FileExists(PluginsSettingsFilePath))
4747
{
48-
EnsureLatestInstalled(ExecutablePath, PluginsSettingsFilePath, EnvPath);
48+
// Ensure latest only if user is using Flow's environment setup.
49+
if (PluginsSettingsFilePath.StartsWith(EnvPath, StringComparison.OrdinalIgnoreCase))
50+
EnsureLatestInstalled(ExecutablePath, PluginsSettingsFilePath, EnvPath);
4951

5052
return SetPathForPluginPairs(PluginsSettingsFilePath, Language);
5153
}

0 commit comments

Comments
 (0)