diff --git a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs index 647cb52ff..54c11b4ec 100644 --- a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs +++ b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs @@ -82,6 +82,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow ApplicationController.Instance.MainView = this; } + public override void OnLoad(EventArgs args) + { + if (Application.MiniTouchScreen.Enabled) + { + var miniTouchScreen = new SystemWindow(800, 480); + + miniTouchScreen.ShowAsSystemWindow(); + } + + base.OnLoad(args); + } private void AddStandardUi(ThemeConfig theme) { diff --git a/Program.cs b/Program.cs index 313c8f978..311a7b562 100644 --- a/Program.cs +++ b/Program.cs @@ -148,8 +148,8 @@ namespace MatterHackers.MatterControl Slicer.RunInProcess = config.GetValue("MatterControl:Slicer:Debug"); Application.EnableF5Collect = config.GetValue("MatterControl:Application:EnableF5Collect"); Application.EnableNetworkTraffic = config.GetValue("MatterControl:Application:EnableNetworkTraffic", true); - Application.MiniTouchScreen.Make = config.GetValue("MatterControl:MiniTouchScreen.Make", ""); - Application.MiniTouchScreen.Model = config.GetValue("MatterControl:MiniTouchScreen.Model", ""); + Application.MiniTouchScreen.Make = config.GetValue("MatterControl:MiniTouchScreen:Make", ""); + Application.MiniTouchScreen.Model = config.GetValue("MatterControl:MiniTouchScreen:Model", ""); // Make sure we have the right working directory as we assume everything relative to the executable. Directory.SetCurrentDirectory(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));