Revise Open Recent filter

This commit is contained in:
jlewin 2019-05-28 18:00:30 -07:00
parent 1e7c37ab5d
commit 3d2aff70d4

View file

@ -171,9 +171,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
int maxItemWidth = 0;
// Select the 25 most recent files and project onto FileSystemItems
var recentFiles = new DirectoryInfo(ApplicationDataStorage.Instance.PlatingDirectory).GetFiles("*.mcx").OrderByDescending(f => f.LastWriteTime);
foreach (var item in recentFiles.Where(f => f.Length > 500).Select(f => new SceneReplacementFileItem(f.FullName)).Take(12))
foreach (var item in recentFiles.Where(f => f.Length > 215).Select(f => new SceneReplacementFileItem(f.FullName)).Take(12))
{
var imageBuffer = new ImageBuffer(thumbWidth, thumbWidth);