Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,11 @@ private void DynamoViewModelRequestUserSaveWorkflow(object sender, WorkspaceSave

// Show the one-time Python Engine Change notification for the workspace
var ws = dynamoViewModel.Model.CurrentWorkspace;
if (!ws.HasShownPythonAutoMigrationNotification && ws.ShowPythonAutoMigrationNotifications)
var prefSettings = dynamoViewModel.Model.PreferenceSettings;

if (!ws.HasShownPythonAutoMigrationNotification
&& ws.ShowPythonAutoMigrationNotifications
&& prefSettings.ShowPythonAutoMigrationNotifications)
{
var cancelFirstDialogBox = ShowPythonEngineChangeNoticeAndMarkIfProceed();
if (cancelFirstDialogBox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ private void OnCurrentWorkspaceCleared(IWorkspaceModel workspace)
// Close the CPython toast notification when workspace is cleared/closed
DynamoViewModel.ToastManager?.CloseRealTimeInfoWindow();
lastWorkspaceGuid = Guid.Empty;
CurrentWorkspace.ShowPythonAutoMigrationNotifications = false;
}

private void OnWorkspaceRemoveStarted(IWorkspaceModel workspace)
Expand Down Expand Up @@ -515,7 +516,7 @@ private void MigrateCPythonNodesForWorkspace()
customCount,
LoadedParams.StartupParams.PathManager.BackupDirectory);

CurrentWorkspace.ShowPythonAutoMigrationNotifications = preferenceSettings.ShowPythonAutoMigrationNotifications;
CurrentWorkspace.ShowPythonAutoMigrationNotifications = true;
}
}

Expand Down
Loading