Await async tasks

This commit is contained in:
John Lewin 2019-03-13 14:16:55 -07:00
parent c760429bbe
commit 9da48f69ed
2 changed files with 4 additions and 4 deletions

View file

@ -585,9 +585,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
ID = "ArrangeAll",
Title = "Arrange All Parts".Localize(),
Action = () =>
Action = async () =>
{
sceneContext.Scene.AutoArrangeChildren(this.BedCenter);
await sceneContext.Scene.AutoArrangeChildren(this.BedCenter).ConfigureAwait(false);
},
IsEnabled = () => sceneContext.EditableScene
},