Revise Plating History filters

- Issue MatterHackers/MCCentral#5606
Plating history only shows the most 25 recent items
- Issue MatterHackers/MCCentral#5607
Plating history hides files less than 500 bytes
This commit is contained in:
jlewin 2019-05-28 17:58:28 -07:00
parent 3ad428ead3
commit 1e7c37ab5d

View file

@ -84,7 +84,7 @@ namespace MatterHackers.MatterControl.Library
if (Directory.Exists(this.FullPath))
{
var recentFiles = new DirectoryInfo(this.FullPath).GetFiles("*.mcx").OrderByDescending(f => f.LastWriteTime);
Items = recentFiles.Where(f => f.Length > 500).Take(this.PageSize).Select(f => new FileSystemFileItem(f.FullName)).ToList<ILibraryItem>();
Items = recentFiles.Where(f => f.Length > 215).Select(f => new FileSystemFileItem(f.FullName)).ToList<ILibraryItem>();
}
}