Skip to content

Commit

Permalink
Fix API breaking changes (#14916)
Browse files Browse the repository at this point in the history
* Fix API breaking changes

* Update OpenFileCommand

* update
  • Loading branch information
QilongTang authored Feb 2, 2024
1 parent 8f123fe commit d0bd96e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion src/DynamoCore/Models/RecordableCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,25 @@ public class OpenFileCommand : RecordableCommand
{
#region Public Class Methods

/// <summary>
/// Constructor
/// </summary>
/// <param name="filePath">The path to the file.</param>
/// <param name="forceManualExecutionMode">Should the file be opened in manual execution mode?</param>
public OpenFileCommand(string filePath, bool forceManualExecutionMode = false)
{
FilePath = filePath;
ForceManualExecutionMode = forceManualExecutionMode;
IsTemplate = false;
}

/// <summary>
/// Constructor
/// </summary>
/// <param name="filePath">The path to the file.</param>
/// <param name="forceManualExecutionMode">Should the file be opened in manual execution mode?</param>
/// <param name="isTemplate">Is Dynamo opening a template file?</param>
public OpenFileCommand(string filePath, bool forceManualExecutionMode = false, bool isTemplate = false)
public OpenFileCommand(string filePath, bool forceManualExecutionMode, bool isTemplate)
{
FilePath = filePath;
ForceManualExecutionMode = forceManualExecutionMode;
Expand Down
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/TestInfrastructure/CustomNodeMutator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion test/DynamoCoreTests/Engine/LiveRunnerServicesTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using Dynamo.Models;
using NUnit.Framework;

Expand Down
2 changes: 1 addition & 1 deletion test/DynamoCoreTests/Models/ForceRunCancelCommandTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Xml;
using Dynamo.Models;
using Dynamo.Utilities;
Expand Down

0 comments on commit d0bd96e

Please sign in to comment.