Took out timed lock
This commit is contained in:
parent
f8cef1222c
commit
3196f61752
7 changed files with 28 additions and 22 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue