From 13c466b4cdc7b679fdb318ea0580faa696d97654 Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Sun, 25 Oct 2020 22:00:26 -0700 Subject: [PATCH] Fixing release build --- Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 78b5a6a45..a4f777f39 100644 --- a/Program.cs +++ b/Program.cs @@ -39,6 +39,7 @@ using MatterHackers.Agg; using MatterHackers.Agg.Platform; using MatterHackers.Agg.UI; using MatterHackers.MatterControl.DataStorage; +using MatterHackers.MatterControl.SettingsManagement; using MatterHackers.MatterControl.SlicerConfiguration; using MatterHackers.SerialPortCommunication.FrostedSerial; using Microsoft.Extensions.Configuration; @@ -173,10 +174,14 @@ namespace MatterHackers.MatterControl { SetProcessDpiAwareness((int)DpiAwareness.PerMonitorAware); } + + var isExperimental = OemSettings.Instance.WindowTitleExtra == "Experimental"; #if !DEBUG // Conditionally spin up error reporting if not on the Stable channel string channel = UserSettings.Instance.get(UserSettingsKey.UpdateFeedType); - if (string.IsNullOrEmpty(channel) || channel != "release" || OemSettings.Instance.WindowTitleExtra == "Experimental") + if (string.IsNullOrEmpty(channel) + || channel != "release" + || isExperimental) #endif { System.Windows.Forms.Application.ThreadException += (s, e) =>