Add type for thumbnail cache, move to ApplicationController

This commit is contained in:
John Lewin 2018-06-21 09:02:31 -07:00
parent 2c0367a2c5
commit b491cc8e5a
6 changed files with 12 additions and 81 deletions

View file

@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
string thumbnailId = libraryItem.ID;
var thumbnail = MeshContentProvider.LoadCachedImage(thumbnailId, thumbWidth, thumbHeight);
var thumbnail = ApplicationController.Instance.Thumbnails.LoadCachedImage(thumbnailId, thumbWidth, thumbHeight);
if (thumbnail != null)
{
this.SetItemThumbnail(thumbnail);