Ensure view and button state are always synced

This commit is contained in:
John Lewin 2017-07-07 06:18:58 -07:00
parent 485991a223
commit 1a9d90bc15
3 changed files with 84 additions and 50 deletions

View file

@ -121,7 +121,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
ApplicationController.Instance.Printer.BedPlate.LoadGCode(printItem.GetGCodePathAndFileName(), printerTabPage.gcodeViewer.LoadProgress_Changed);
sliceProgressReporter.EndReporting();
printerTabPage.SwitchToLayerView();
printerTabPage.ViewMode = PartViewMode.Layers3D;
// HACK: directly fire method which previously ran on SlicingDone event on PrintItemWrapper
UiThread.RunOnIdle(printerTabPage.gcodeViewer.CreateAndAddChildren);