diff --git a/MatterControlLib/Library/Providers/MatterControl/ComputerCollectionContainer.cs b/MatterControlLib/Library/Providers/MatterControl/ComputerCollectionContainer.cs index 2d9067cef..5a4598c1e 100644 --- a/MatterControlLib/Library/Providers/MatterControl/ComputerCollectionContainer.cs +++ b/MatterControlLib/Library/Providers/MatterControl/ComputerCollectionContainer.cs @@ -27,6 +27,7 @@ of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project. */ +using System; using System.IO; using MatterHackers.Agg; using MatterHackers.Agg.Platform; @@ -95,7 +96,24 @@ namespace MatterHackers.MatterControl.Library })); } - if (ProfileManager.Instance != null) + foreach (var drive in DriveInfo.GetDrives()) + { + this.ChildContainers.Add( + new DynamicContainerLink( + drive.Name, + StaticData.Instance.LoadIcon(Path.Combine("Library", "folder.png")), + StaticData.Instance.LoadIcon(Path.Combine("Library", "hard-drive.png")), + () => new FileSystemContainer(drive.RootDirectory.FullName) + { + UseIncrementedNameDuringTypeChange = true, + DefaultSort = new LibrarySortBehavior() + { + SortKey = SortKey.ModifiedDate, + } + })); + } + + if (ProfileManager.Instance != null) { var userDirectory = ProfileManager.Instance.UserProfilesDirectory; var libraryFiles = Directory.GetFiles(userDirectory, "*.library"); diff --git a/StaticData/Icons/Library/hard-drive.png b/StaticData/Icons/Library/hard-drive.png new file mode 100644 index 000000000..ca0582b1a Binary files /dev/null and b/StaticData/Icons/Library/hard-drive.png differ diff --git a/StaticData/Icons/Library/hard-drive.svg b/StaticData/Icons/Library/hard-drive.svg new file mode 100644 index 000000000..d86b517a8 --- /dev/null +++ b/StaticData/Icons/Library/hard-drive.svg @@ -0,0 +1,4 @@ + + + + diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 2b3175da4..7402c44c7 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 2b3175da4640913781a8b41e782199bb10c8448b +Subproject commit 7402c44c7895eb96df6abcd48fb760a2f2bcf8d9