mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-12 22:25:38 -04:00
Don't reset output path if dialog is canceled
This commit is contained in:
parent
60603dfb04
commit
a7f4fe0643
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue