Move EditContext to LoadContent call

This commit is contained in:
John Lewin 2017-11-29 08:52:29 -08:00
parent cd07b07d87
commit a8ce44f7a3
6 changed files with 61 additions and 50 deletions

View file

@ -96,15 +96,18 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
else
{
BedConfig bed;
this.CreatePartTab(
"New Part",
new BedConfig(
new EditContext()
{
ContentStore = ApplicationController.Instance.Library.PlatingHistory,
SourceItem = BedConfig.NewPlatingItem()
}),
bed = new BedConfig(),
theme);
bed.LoadContent(
new EditContext()
{
ContentStore = ApplicationController.Instance.Library.PlatingHistory,
SourceItem = BedConfig.NewPlatingItem()
}).ConfigureAwait(false);
}
// add in the update available button