Move EditContext to LoadContent call
This commit is contained in:
parent
cd07b07d87
commit
a8ce44f7a3
6 changed files with 61 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue