Fixed a bug with export to folder not working if done a second time.

Made the slicing queue report its status on the uithread.
This commit is contained in:
larsbrubaker 2014-03-05 12:00:37 -08:00
parent 1ea4162948
commit a035aed52e
2 changed files with 23 additions and 63 deletions

View file

@ -219,7 +219,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
message = "Saving intermediate file";
}
message += "...";
itemToSlice.OnSlicingOutputMessage(new StringEventArgs(message));
UiThread.RunOnIdle((state) =>
{
itemToSlice.OnSlicingOutputMessage(new StringEventArgs(message));
});
}
};
@ -235,8 +238,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
}
itemToSlice.CurrentlySlicing = false;
itemToSlice.DoneSlicing = true;
UiThread.RunOnIdle((state) =>
{
itemToSlice.CurrentlySlicing = false;
itemToSlice.DoneSlicing = true;
});
using (TimedLock.Lock(listOfSlicingItems, "CreateSlicedPartsThread()"))
{