Fix failing NoContentChangedOnLoad test
This commit is contained in:
parent
fc5352198b
commit
e1f20570f6
1 changed files with 5 additions and 2 deletions
|
|
@ -86,8 +86,11 @@ namespace MatterHackers.MatterControl.Library
|
|||
public override void Load()
|
||||
{
|
||||
// Select the 25 most recent files and project onto FileSystemItems
|
||||
var recentFiles = new DirectoryInfo(this.FullPath).GetFiles("*.mcx").OrderByDescending(f => f.LastWriteTime);
|
||||
Items = recentFiles.Take(this.PageSize).Select(f => new SceneReplacementFileItem(f.FullName)).ToList<ILibraryItem>();
|
||||
if (Directory.Exists(this.FullPath))
|
||||
{
|
||||
var recentFiles = new DirectoryInfo(this.FullPath).GetFiles("*.mcx").OrderByDescending(f => f.LastWriteTime);
|
||||
Items = recentFiles.Take(this.PageSize).Select(f => new SceneReplacementFileItem(f.FullName)).ToList<ILibraryItem>();
|
||||
}
|
||||
}
|
||||
|
||||
public void Move(IEnumerable<ILibraryItem> items, ILibraryWritableContainer targetContainer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue