Skip to content

Commit

Permalink
[Cherrypick] DYN-7033: Home Open button should remember last opened l…
Browse files Browse the repository at this point in the history
…ocation (#15325)
  • Loading branch information
reddyashish authored Jun 18, 2024
1 parent 2dbfd8f commit e540896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e540896

Please sign in to comment.