diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-03-16 15:17:30 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-03-16 15:17:30 +0200 |
| commit | e5d8de8b48f1600c9c5718771ad5c2f26be0be88 (patch) | |
| tree | fe902a8613a8f0e353beaa81888b13823c86130e /Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs | |
| parent | c1ea90442c5e6f0e000d69c8b2a0b0a81dfa6130 (diff) | |
| parent | 3bc7ddaf3b52eeae095e82e062156dde37e4805b (diff) | |
| download | Tango-e5d8de8b48f1600c9c5718771ad5c2f26be0be88.tar.gz Tango-e5d8de8b48f1600c9c5718771ad5c2f26be0be88.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.FileSystem/FileSystemItem.cs | 5 |
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) |
