mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
rename method for better description
This commit is contained in:
parent
bbca3cf202
commit
f2fffcb675
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue