From b25cdf772c3723d7c705bf6b2c7b548e329b32bb Mon Sep 17 00:00:00 2001 From: pinzart90 Date: Wed, 24 Jan 2024 11:34:48 -0500 Subject: [PATCH] Update CrashReportTool.cs --- src/DynamoCoreWpf/Utilities/CrashReportTool.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/DynamoCoreWpf/Utilities/CrashReportTool.cs b/src/DynamoCoreWpf/Utilities/CrashReportTool.cs index d2626149515..b2688b41a71 100644 --- a/src/DynamoCoreWpf/Utilities/CrashReportTool.cs +++ b/src/DynamoCoreWpf/Utilities/CrashReportTool.cs @@ -1,5 +1,4 @@ using Dynamo.Core; -using Dynamo.Logging; using Dynamo.Models; using Dynamo.ViewModels; using System; @@ -178,9 +177,6 @@ internal static bool ShowCrashErrorReportWindow(DynamoViewModel viewModel, Crash } DynamoModel model = viewModel?.Model; - - string cerToolDir = !string.IsNullOrEmpty(model?.CERLocation) ? - model?.CERLocation : FindCERToolInInstallLocations(); string cerToolDir = !string.IsNullOrEmpty(model?.CERLocation) ? model?.CERLocation : FindCERToolInInstallLocations(); @@ -285,6 +281,7 @@ internal static bool ShowCrashErrorReportWindow(DynamoViewModel viewModel, Crash } var upiConfigFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "upiconfig.xml"); + using (var cerDLL = new CerDLL(cerToolPath)) { cerDLL.ToggleCER(true);