Don't reset output path if dialog is canceled

pull/1003/head
Tyrrrz 2 years ago
parent 60603dfb04
commit a7f4fe0643

@ -101,11 +101,15 @@ public class ExportSetupViewModel : DialogScreen
var extension = SelectedFormat.GetFileExtension();
var filter = $"{extension.ToUpperInvariant()} files|*.{extension}";
OutputPath = _dialogManager.PromptSaveFilePath(filter, defaultFileName);
var outputPath = _dialogManager.PromptSaveFilePath(filter, defaultFileName);
if (!string.IsNullOrWhiteSpace(outputPath))
OutputPath = outputPath;
}
else
{
OutputPath = _dialogManager.PromptDirectoryPath();
var outputPath = _dialogManager.PromptDirectoryPath();
if (!string.IsNullOrWhiteSpace(outputPath))
OutputPath = outputPath;
}
}

Loading…
Cancel
Save