Prevent tree expansion blocking render
This commit is contained in:
parent
a6417f4afa
commit
41d1ff4c5b
1 changed files with 10 additions and 7 deletions
|
@ -293,14 +293,17 @@
|
||||||
|
|
||||||
foreach (var child in directory.Children)
|
foreach (var child in directory.Children)
|
||||||
{
|
{
|
||||||
var paths = Directory.EnumerateDirectories(child.Path, "*", new EnumerationOptions
|
await Task.Run(() =>
|
||||||
{
|
{
|
||||||
IgnoreInaccessible = true,
|
var paths = Directory.EnumerateDirectories(child.Path, "*", new EnumerationOptions
|
||||||
RecurseSubdirectories = true,
|
{
|
||||||
MaxRecursionDepth = 1
|
IgnoreInaccessible = true,
|
||||||
});
|
RecurseSubdirectories = true,
|
||||||
|
MaxRecursionDepth = 1
|
||||||
|
});
|
||||||
|
|
||||||
child.PopulateChildren(paths);
|
child.PopulateChildren(paths);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue