rename method for better description

This commit is contained in:
Jeremy Wu 2020-06-02 21:11:16 +10:00
parent bbca3cf202
commit f2fffcb675
3 changed files with 4 additions and 4 deletions

View file

@ -192,8 +192,8 @@ namespace Flow.Launcher.Plugin.Explorer
SubTitle = "Path: " + record.FullPath,
Action = _ =>
{
if(!Main.Settings.IndexSearchExcludedDirectories.Any(x => x == record.FullPath))
Main.Settings.IndexSearchExcludedDirectories.Add(record.FullPath);
if(!Main.Settings.IndexSearchExcludedPaths.Any(x => x == record.FullPath))
Main.Settings.IndexSearchExcludedPaths.Add(record.FullPath);
return false;
},

View file

@ -112,7 +112,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
if (!_settings.UseWindowsIndexForDirectorySearch)
return false;
if (_settings.IndexSearchExcludedDirectories
if (_settings.IndexSearchExcludedPaths
.Any(x => x == FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)))
return false;

View file

@ -17,6 +17,6 @@ namespace Flow.Launcher.Plugin.Explorer
public bool UseWindowsIndexForDirectorySearch { get; set; } = true;
[JsonProperty]
public List<string> IndexSearchExcludedDirectories { get; set; } = new List<string>();
public List<string> IndexSearchExcludedPaths { get; set; } = new List<string>();
}
}