Skip to content

Commit

Permalink
feature: updated the directory tree to select the nearest parent path…
Browse files Browse the repository at this point in the history
… if the folder has not yet been populated in the tree.
  • Loading branch information
MetalHexx committed Mar 9, 2024
1 parent 5b34bd7 commit 21661e2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public void SelectDirectory(string directoryPath)

IsSelected = normalizedCurrentPath.Equals(normalizedTargetPath);

if(Directories.Count == 0 && normalizedTargetPath.Contains(normalizedCurrentPath))
{
IsSelected = true;
return;
}

foreach (var directory in Directories)
{
directory.SelectDirectory(directoryPath);
Expand Down

0 comments on commit 21661e2

Please sign in to comment.