Show loading / restoring progress

Fix null when canceling open system file
This commit is contained in:
LarsBrubaker 2022-02-20 07:59:28 -08:00
parent d931157145
commit aa8591ffe5
13 changed files with 149 additions and 75 deletions

View file

@ -1024,7 +1024,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
printer.Bed.ClearPlate();
// Load current scene into new printer scene
await printer.Bed.LoadIntoCurrent(sceneContext.EditContext);
await printer.Bed.LoadIntoCurrent(sceneContext.EditContext, null);
bool allInBounds = true;
foreach (var item in printer.Bed.Scene.VisibleMeshes())
@ -1281,7 +1281,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
SourceItem = this.SceneReplacement,
// No content store for GCode
ContentStore = null
}).ConfigureAwait(false);
}, null).ConfigureAwait(false);
this.SceneReplacement = null;
}