Fixed a problem with eeprom settings loading from the printer thread rather than the uithread.

This commit is contained in:
larsbrubaker 2014-11-06 11:27:42 -08:00
parent 6149c9177d
commit 31485deb3d
3 changed files with 16 additions and 3 deletions

View file

@ -415,10 +415,19 @@ namespace MatterHackers.MatterControl.EeProm
{
if (eventAdded != null)
{
eventAdded(this, lineString);
UiThread.RunOnIdle(CallEventAdded, lineString);
}
}
}
void CallEventAdded(object state)
{
StringEventArgs lineString = state as StringEventArgs;
if (lineString != null)
{
eventAdded(this, lineString);
}
}
public void Update()
{

View file

@ -182,8 +182,6 @@ namespace MatterHackers.MatterControl.EeProm
PrinterConnectionAndCommunication.Instance.CommunicationUnconditionalFromPrinter.RegisterEvent(currentEePromSettings.Add, ref unregisterEvents);
currentEePromSettings.eventAdded += SetUiToPrinterSettings;
AddChild(mainContainer);
ShowAsSystemWindow();

View file

@ -2837,3 +2837,9 @@ Translated:If greater than 0, this is the distance away from parts to create a p
English:Please Confirm
Translated:Please Confirm
English:Reset to Factory Defaults
Translated:Reset to Factory Defaults
English:Save to EEProm
Translated:Save to EEProm