Skip to content

Commit

Permalink
Don't passing the Preferences (#2972)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesus Alfredo Alviño <[email protected]>
  • Loading branch information
jesusalvino and Jesus Alfredo Alviño authored Sep 22, 2023
1 parent ffb4e69 commit 217f4a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/DynamoRevit/DynamoRevit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,7 @@ private static RevitDynamoModel InitializeCoreModel(DynamoRevitCommandData comma
AuthProvider = new RevitOAuth2Provider(new DispatcherSynchronizationContext(Dispatcher.CurrentDispatcher)),
ExternalCommandData = commandData,
UpdateManager = revitUpdateManager,
ProcessMode = isAutomationMode ? TaskProcessMode.Synchronous : TaskProcessMode.Asynchronous,
Preferences = PreferenceSettings.Instance
ProcessMode = isAutomationMode ? TaskProcessMode.Synchronous : TaskProcessMode.Asynchronous
});
}

Expand Down
3 changes: 1 addition & 2 deletions test/Libraries/RevitTestServices/RevitSystemTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ protected override void StartDynamo(TestSessionConfiguration testConfig)
SchedulerThread = new TestSchedulerThread(),
PackageManagerAddress = "https://www.dynamopackages.com",
ExternalCommandData = commandData,
ProcessMode = RevitTaskProcessMode,
Preferences = PreferenceSettings.Instance
ProcessMode = RevitTaskProcessMode
});

Model = DynamoRevit.RevitDynamoModel;
Expand Down

0 comments on commit 217f4a6

Please sign in to comment.