Took out timed lock

This commit is contained in:
Lars Brubaker 2016-01-07 16:45:16 -08:00
parent f8cef1222c
commit 3196f61752
7 changed files with 28 additions and 22 deletions

View file

@ -50,6 +50,7 @@ namespace MatterHackers.MatterControl
{
public class PartThumbnailWidget : ClickWidget
{
object locker = new object();
// all the color stuff
new public double BorderWidth = 0;
@ -207,7 +208,7 @@ namespace MatterHackers.MatterControl
private void LoadOrCreateThumbnail()
{
using (TimedLock.Lock(this, "TryLoad"))
lock(locker)
{
if (!thumbNailHasBeenCreated)
{