mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-01-28 22:01:55 +00:00
Don't reset output path if dialog is canceled
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user