From cfaa97dd30197d1df3018e760908ef6da23e0516 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Thu, 28 Dec 2017 17:45:14 -0800 Subject: [PATCH] Remove hard-coded IsProtected flag on LibraryContainer - Default FileSystemContainers to IsProtected = false - Issue MatterHackers/MCCentral#2420 DragDrop zip onto bed suggests it works but does not --- Library/Providers/FileSystem/FileSystemContainer.cs | 2 ++ Library/Providers/LibraryContainer.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Providers/FileSystem/FileSystemContainer.cs b/Library/Providers/FileSystem/FileSystemContainer.cs index 69078214c..a55394d47 100644 --- a/Library/Providers/FileSystem/FileSystemContainer.cs +++ b/Library/Providers/FileSystem/FileSystemContainer.cs @@ -55,6 +55,8 @@ namespace MatterHackers.MatterControl.Library this.fullPath = path; this.Name = Path.GetFileName(path); + this.IsProtected = false; + this.ChildContainers = new List(); this.Items = new List(); #if !__ANDROID__ diff --git a/Library/Providers/LibraryContainer.cs b/Library/Providers/LibraryContainer.cs index 44f3e7c1f..b57703589 100644 --- a/Library/Providers/LibraryContainer.cs +++ b/Library/Providers/LibraryContainer.cs @@ -46,7 +46,7 @@ namespace MatterHackers.MatterControl.Library public Type DefaultView { get; protected set; } public List ChildContainers { get; set; } - public bool IsProtected => true; + public bool IsProtected { get; protected set; } = true; public virtual Task GetThumbnail(ILibraryItem item, int width, int height) {