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
This commit is contained in:
parent
05b89209a3
commit
cfaa97dd30
2 changed files with 3 additions and 1 deletions
|
|
@ -55,6 +55,8 @@ namespace MatterHackers.MatterControl.Library
|
||||||
this.fullPath = path;
|
this.fullPath = path;
|
||||||
this.Name = Path.GetFileName(path);
|
this.Name = Path.GetFileName(path);
|
||||||
|
|
||||||
|
this.IsProtected = false;
|
||||||
|
|
||||||
this.ChildContainers = new List<ILibraryContainerLink>();
|
this.ChildContainers = new List<ILibraryContainerLink>();
|
||||||
this.Items = new List<ILibraryItem>();
|
this.Items = new List<ILibraryItem>();
|
||||||
#if !__ANDROID__
|
#if !__ANDROID__
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace MatterHackers.MatterControl.Library
|
||||||
public Type DefaultView { get; protected set; }
|
public Type DefaultView { get; protected set; }
|
||||||
|
|
||||||
public List<ILibraryContainerLink> ChildContainers { get; set; }
|
public List<ILibraryContainerLink> ChildContainers { get; set; }
|
||||||
public bool IsProtected => true;
|
public bool IsProtected { get; protected set; } = true;
|
||||||
|
|
||||||
public virtual Task<ImageBuffer> GetThumbnail(ILibraryItem item, int width, int height)
|
public virtual Task<ImageBuffer> GetThumbnail(ILibraryItem item, int width, int height)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue