aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-16 14:32:39 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-16 14:32:39 +0200
commitadabe4e1b99bc57f0381fb0a5bb3192ac0fdff18 (patch)
treeadfce075209485fb449af343b1b7877d02b93e64 /Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
parentb188d7bfd91062f65474bd139bb8a434694f117b (diff)
downloadTango-adabe4e1b99bc57f0381fb0a5bb3192ac0fdff18.tar.gz
Tango-adabe4e1b99bc57f0381fb0a5bb3192ac0fdff18.zip
Working on FSE/PPC FileSystem Provider/Service.
Diffstat (limited to 'Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs')
-rw-r--r--Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs b/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
index 6f8190f6c..536409f63 100644
--- a/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
+++ b/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
@@ -52,14 +52,15 @@ namespace Tango.FileSystem
{
DriveType = dto.DriveType,
Label = dto.DriveLabel,
- Items = dto.Items.Select(x => FromDTO(x)).ToObservableCollection()
+ Items = dto.Items?.Select(x => FromDTO(x)).ToObservableCollection()
};
}
else if (dto.Type == FileSystemItemType.Folder)
{
item = new FolderItem()
{
- Items = dto.Items.Select(x => FromDTO(x)).ToObservableCollection()
+ Items = dto.Items?.Select(x => FromDTO(x)).ToObservableCollection(),
+ IsRoot = dto.IsRoot,
};
}
else if (dto.Type == FileSystemItemType.File)