From 0a0df8ca806b82fc14b46d500b026a6d537e014f Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Mon, 1 Jul 2019 18:21:44 -0700 Subject: [PATCH] clean up --- MatterControlLib/ApplicationView/ApplicationController.cs | 8 ++++---- MatterControlLib/ApplicationView/View3DConfig.cs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index df3bedadf..41a43830f 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -3930,7 +3930,7 @@ Support and tutorials: ReportStartupProgress(0.02, "First draw->RunOnIdle"); //UiThread.RunOnIdle(() => - Task.Run((Func)(async () => + Task.Run(async () => { try { @@ -3952,7 +3952,7 @@ Support and tutorials: } catch (Exception ex) { - UiThread.RunOnIdle((Action)(() => + UiThread.RunOnIdle(() => { statusText.Visible = false; @@ -3988,11 +3988,11 @@ Support and tutorials: progressBar.Visible = false; progressPanel.AddChild(closeButton); - })); + }); } AppContext.IsLoading = false; - })); + }); } ReportStartupProgress(0, "ShowAsSystemWindow"); diff --git a/MatterControlLib/ApplicationView/View3DConfig.cs b/MatterControlLib/ApplicationView/View3DConfig.cs index d15be7012..b8888b498 100644 --- a/MatterControlLib/ApplicationView/View3DConfig.cs +++ b/MatterControlLib/ApplicationView/View3DConfig.cs @@ -159,6 +159,7 @@ namespace MatterHackers.MatterControl } private bool _renderBuildVolume; + public bool RenderBuildVolume { get => _renderBuildVolume;