mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove TranslateEnvironmentVariablePath
This commit is contained in:
parent
2c36692052
commit
32268890b9
2 changed files with 2 additions and 7 deletions
|
|
@ -60,11 +60,6 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
return envStringPaths;
|
||||
}
|
||||
|
||||
internal static string TranslateEnvironmentVariablePath(string environmentVariablePath)
|
||||
{
|
||||
return Environment.ExpandEnvironmentVariables(environmentVariablePath);
|
||||
}
|
||||
|
||||
internal static List<Result> GetEnvironmentStringPathSuggestions(string querySearch, Query query, PluginInitContext context)
|
||||
{
|
||||
var results = new List<Result>();
|
||||
|
|
|
|||
|
|
@ -178,11 +178,11 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
|
||||
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\
|
||||
var isEnvironmentVariablePath = EnvironmentVariables.BeginsWithEnvironmentVar(querySearch);
|
||||
|
||||
|
||||
var locationPath = querySearch;
|
||||
|
||||
if (isEnvironmentVariablePath)
|
||||
locationPath = EnvironmentVariables.TranslateEnvironmentVariablePath(locationPath);
|
||||
locationPath = Environment.ExpandEnvironmentVariables(locationPath);
|
||||
|
||||
// Check that actual location exists, otherwise directory search will throw directory not found exception
|
||||
if (!FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath).LocationExists())
|
||||
|
|
|
|||
Loading…
Reference in a new issue