From 96f9119feab4613376a313712dfc4037f8c76d75 Mon Sep 17 00:00:00 2001 From: glopesdev Date: Tue, 3 Sep 2024 17:26:29 +0100 Subject: [PATCH] Ensure project name is set before navigation reset --- Bonsai.Editor/EditorForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bonsai.Editor/EditorForm.cs b/Bonsai.Editor/EditorForm.cs index 72fcb31a..fe05d454 100644 --- a/Bonsai.Editor/EditorForm.cs +++ b/Bonsai.Editor/EditorForm.cs @@ -891,6 +891,7 @@ bool OpenWorkflow(string fileName, bool setWorkingDirectory) } workflowBuilder = PrepareWorkflow(workflowBuilder, workflowVersion, out bool upgraded); + saveWorkflowDialog.FileName = fileName; editorControl.ResetNavigation(); editorSite.ValidateWorkflow(); @@ -908,7 +909,6 @@ bool OpenWorkflow(string fileName, bool setWorkingDirectory) } } - saveWorkflowDialog.FileName = fileName; ResetProjectStatus(); if (upgraded) {