diff --git a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs index ed580bf8ae5..38366670234 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs @@ -2150,7 +2150,7 @@ private void ShowOpenDialogAndOpenResult(object parameter) _fileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer); } } - else // use the samples directory, if it exists + else if (string.IsNullOrEmpty(LastSavedLocation)) //If there is no last saved location, use the samples directory(if it exists) { Assembly dynamoAssembly = Assembly.GetExecutingAssembly(); string location = Path.GetDirectoryName(dynamoAssembly.Location);