mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
formatting
This commit is contained in:
parent
db8ba91558
commit
9dcf030e8a
1 changed files with 6 additions and 5 deletions
|
|
@ -722,7 +722,8 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
||||||
watcher.Deleted += static (_, _) => indexQueue.Writer.TryWrite(default);
|
watcher.Deleted += static (_, _) => indexQueue.Writer.TryWrite(default);
|
||||||
watcher.EnableRaisingEvents = true;
|
watcher.EnableRaisingEvents = true;
|
||||||
watcher.IncludeSubdirectories = true;
|
watcher.IncludeSubdirectories = true;
|
||||||
foreach(var extension in extensions) {
|
foreach (var extension in extensions)
|
||||||
|
{
|
||||||
watcher.Filters.Add($"*.{extension}");
|
watcher.Filters.Add($"*.{extension}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -760,7 +761,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
||||||
foreach (var source in group)
|
foreach (var source in group)
|
||||||
{
|
{
|
||||||
if (parents.Any(p => IsSubPathOf(source.Location, p.Location) &&
|
if (parents.Any(p => IsSubPathOf(source.Location, p.Location) &&
|
||||||
source != p)) // TODO startwith not accurate
|
source != p))
|
||||||
{
|
{
|
||||||
parents.Remove(source);
|
parents.Remove(source);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue