Fix bed exception after switching printers

- Load bed scene after switch
This commit is contained in:
John Lewin 2018-10-12 13:27:35 -07:00
parent 8347a7a40a
commit b54a366f70

View file

@ -213,7 +213,13 @@ namespace MatterHackers.MatterControl.Library.Widgets.HardwarePage
else
{
ProfileManager.Instance.LastProfileID = printerID;
ProfileManager.Instance.LoadPrinter().ConfigureAwait(false);
ProfileManager.Instance.LoadPrinter().ContinueWith(task =>
{
var printer = task.Result;
// TODO: Alternatively we could hold and restore the Scene from the prior printer
printer.Bed.LoadPlateFromHistory().ConfigureAwait(false);
});
}
}
}