aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs
diff options
context:
space:
mode:
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)