mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix exclude path check for index search
This commit is contained in:
parent
910c5f2797
commit
ec58939e55
2 changed files with 2 additions and 2 deletions
|
|
@ -263,7 +263,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>.
|
||||
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>. Equal paths are not considered to be contained by default.
|
||||
/// From https://stackoverflow.com/a/66877016
|
||||
/// </summary>
|
||||
/// <param name="parentPath">Parent path</param>
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
}
|
||||
|
||||
results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
|
||||
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle)));
|
||||
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, true)));
|
||||
|
||||
return results.ToList();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue