Ability to have user folders within computer
This commit is contained in:
parent
40b89ecc4b
commit
88cb5328f5
5 changed files with 28 additions and 11 deletions
|
|
@ -43,7 +43,7 @@ using MatterHackers.MatterControl.DataStorage;
|
|||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
public class FileSystemContainer : WritableContainer, ICustomSearch
|
||||
public class FileSystemContainer : WritableContainer, ICustomSearch
|
||||
{
|
||||
private FileSystemWatcher directoryWatcher;
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
}
|
||||
|
||||
if (content is InteractiveScene interactiveScene)
|
||||
{
|
||||
{
|
||||
interactiveScene.MarkSavePoint();
|
||||
}
|
||||
}
|
||||
|
|
@ -237,8 +237,8 @@ namespace MatterHackers.MatterControl.Library
|
|||
|
||||
await Task.Run(async () =>
|
||||
{
|
||||
foreach (var item in items)
|
||||
{
|
||||
foreach (var item in items)
|
||||
{
|
||||
switch (item)
|
||||
{
|
||||
case CreateFolderItem newFolder:
|
||||
|
|
@ -374,6 +374,16 @@ namespace MatterHackers.MatterControl.Library
|
|||
// Matched files projected onto FileSystemFileItem
|
||||
this.Items = new SafeList<ILibraryItem>(matchedFiles.OrderBy(f => f).Select(f => new FileSystemFileItem(f)));
|
||||
|
||||
var indexMd = nonZipFiles.Where(f => f.EndsWith("index.md")).FirstOrDefault();
|
||||
if (indexMd != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
HeaderMarkdown = File.ReadAllText(indexMd);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
this.isDirty = false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue