Fix bed exception after switching printers
- Load bed scene after switch
This commit is contained in:
parent
8347a7a40a
commit
b54a366f70
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue