Skip to content

Commit

Permalink
Reset engine controller for every new workspace (#10113)
Browse files Browse the repository at this point in the history
* reset engine controller for every new workspace

* reset engine only on creating new workspace, not on closing
  • Loading branch information
aparajit-pratap authored Nov 13, 2019
1 parent 89465ff commit b01e2de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,11 @@ internal bool CanSelectAll(object parameter)
public void MakeNewHomeWorkspace(object parameter)
{
if (ClearHomeWorkspaceInternal())
this.ShowStartPage = false; // Hide start page if there's one.
{
model.ResetEngine();

ShowStartPage = false; // Hide start page if there's one.
}
}

internal bool CanMakeNewHomeWorkspace(object parameter)
Expand Down

0 comments on commit b01e2de

Please sign in to comment.