rename method for better description

This commit is contained in:
Jeremy Wu 2020-06-02 21:14:03 +10:00
parent f2fffcb675
commit 2c15f1ce70
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.IndexSearchExcludedPaths.Any(x => x == record.FullPath))
Main.Settings.IndexSearchExcludedPaths.Add(record.FullPath);
if(!Main.Settings.IndexSearchExcludedDirectoryPaths.Any(x => x == record.FullPath))
Main.Settings.IndexSearchExcludedDirectoryPaths.Add(record.FullPath);
return false;
},

View file

@ -112,7 +112,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
if (!_settings.UseWindowsIndexForDirectorySearch)
return false;
if (_settings.IndexSearchExcludedPaths
if (_settings.IndexSearchExcludedDirectoryPaths
.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> IndexSearchExcludedPaths { get; set; } = new List<string>();
public List<string> IndexSearchExcludedDirectoryPaths { get; set; } = new List<string>();
}
}