diff --git a/src/DynamoCore/Models/RecordableCommands.cs b/src/DynamoCore/Models/RecordableCommands.cs index af0232dd2e4..3c7b710a365 100644 --- a/src/DynamoCore/Models/RecordableCommands.cs +++ b/src/DynamoCore/Models/RecordableCommands.cs @@ -457,13 +457,25 @@ public class OpenFileCommand : RecordableCommand { #region Public Class Methods + /// + /// Constructor + /// + /// The path to the file. + /// Should the file be opened in manual execution mode? + public OpenFileCommand(string filePath, bool forceManualExecutionMode = false) + { + FilePath = filePath; + ForceManualExecutionMode = forceManualExecutionMode; + IsTemplate = false; + } + /// /// Constructor /// /// The path to the file. /// Should the file be opened in manual execution mode? /// Is Dynamo opening a template file? - public OpenFileCommand(string filePath, bool forceManualExecutionMode = false, bool isTemplate = false) + public OpenFileCommand(string filePath, bool forceManualExecutionMode, bool isTemplate) { FilePath = filePath; ForceManualExecutionMode = forceManualExecutionMode; diff --git a/src/DynamoCoreWpf/TestInfrastructure/CustomNodeMutator.cs b/src/DynamoCoreWpf/TestInfrastructure/CustomNodeMutator.cs index 5478f60ee80..c0cf8af1059 100644 --- a/src/DynamoCoreWpf/TestInfrastructure/CustomNodeMutator.cs +++ b/src/DynamoCoreWpf/TestInfrastructure/CustomNodeMutator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/test/DynamoCoreTests/Engine/LiveRunnerServicesTest.cs b/test/DynamoCoreTests/Engine/LiveRunnerServicesTest.cs index 0b7cd997385..82c6f4378e9 100644 --- a/test/DynamoCoreTests/Engine/LiveRunnerServicesTest.cs +++ b/test/DynamoCoreTests/Engine/LiveRunnerServicesTest.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using Dynamo.Models; using NUnit.Framework; diff --git a/test/DynamoCoreTests/Models/ForceRunCancelCommandTest.cs b/test/DynamoCoreTests/Models/ForceRunCancelCommandTest.cs index 3153e4ef594..6db39e7f9df 100644 --- a/test/DynamoCoreTests/Models/ForceRunCancelCommandTest.cs +++ b/test/DynamoCoreTests/Models/ForceRunCancelCommandTest.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Xml; using Dynamo.Models; using Dynamo.Utilities;