Skip to content

Commit

Permalink
Update CrashReportTool.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Jan 24, 2024
1 parent 8fd59b6 commit b25cdf7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/DynamoCoreWpf/Utilities/CrashReportTool.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Dynamo.Core;
using Dynamo.Logging;
using Dynamo.Models;
using Dynamo.ViewModels;
using System;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b25cdf7

Please sign in to comment.