Prevent tree expansion blocking render
parent
a6417f4afa
commit
41d1ff4c5b
|
@ -293,14 +293,17 @@
|
|||
|
||||
foreach (var child in directory.Children)
|
||||
{
|
||||
var paths = Directory.EnumerateDirectories(child.Path, "*", new EnumerationOptions
|
||||
{
|
||||
IgnoreInaccessible = true,
|
||||
RecurseSubdirectories = true,
|
||||
MaxRecursionDepth = 1
|
||||
});
|
||||
await Task.Run(() =>
|
||||
{
|
||||
var paths = Directory.EnumerateDirectories(child.Path, "*", new EnumerationOptions
|
||||
{
|
||||
IgnoreInaccessible = true,
|
||||
RecurseSubdirectories = true,
|
||||
MaxRecursionDepth = 1
|
||||
});
|
||||
|
||||
child.PopulateChildren(paths);
|
||||
child.PopulateChildren(paths);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue