Skip to content

Commit

Permalink
Update DynamoView.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Feb 1, 2024
1 parent bebb02e commit a3990d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ internal PreferencesView PreferencesWindow {
/// <param name="dynamoViewModel">Dynamo view model</param>
public DynamoView(DynamoViewModel dynamoViewModel)
{
dynamoViewModel.Model.RequestsCrashPrompt += Controller_RequestsCrashPrompt;
// The user's choice to enable hardware acceleration is now saved in
// the Dynamo preferences. It is set to true by default.
// When the view is constructed, we enable or disable hardware acceleration based on that preference.
Expand Down Expand Up @@ -1335,7 +1336,6 @@ private void DynamoView_Loaded(object sender, EventArgs e)
dynamoViewModel.RequestSave3DImage += DynamoViewModelRequestSave3DImage;
dynamoViewModel.SidebarClosed += DynamoViewModelSidebarClosed;

dynamoViewModel.Model.RequestsCrashPrompt += Controller_RequestsCrashPrompt;
dynamoViewModel.Model.RequestTaskDialog += Controller_RequestTaskDialog;

DynamoSelection.Instance.Selection.CollectionChanged += Selection_CollectionChanged;
Expand Down

0 comments on commit a3990d6

Please sign in to comment.