Improve code comments

This commit is contained in:
Jack251970 2026-02-21 20:30:54 +08:00
parent 04a56b556b
commit 57fde0a2f3

View file

@ -61,7 +61,7 @@ namespace Flow.Launcher.Core.ExternalPlugins.Environments
if (resolvedPath.StartsWith(EnvPath, StringComparison.OrdinalIgnoreCase))
EnsureLatestInstalled(ExecutablePath, resolvedPath, EnvPath);
// Ensure the path is updated in settings in case user has moved Flow to a different location
// Ensure the path is updated in settings in case environment was updated
resolvedPath = ResolvedPluginsSettingsFilePath;
return SetPathForPluginPairs(resolvedPath, Language);
}
@ -112,6 +112,7 @@ namespace Flow.Launcher.Core.ExternalPlugins.Environments
InstallEnvironment();
}
// Ensure the path is updated when user has chosen to install or select environment executable
resolvedPath = ResolvedPluginsSettingsFilePath;
if (FilesFolders.FileExists(resolvedPath))
{