mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
Don't reset output path if dialog is canceled
This commit is contained in:
parent
60603dfb04
commit
a7f4fe0643
|
|
@ -101,11 +101,15 @@ public class ExportSetupViewModel : DialogScreen
|
||||||
var extension = SelectedFormat.GetFileExtension();
|
var extension = SelectedFormat.GetFileExtension();
|
||||||
var filter = $"{extension.ToUpperInvariant()} files|*.{extension}";
|
var filter = $"{extension.ToUpperInvariant()} files|*.{extension}";
|
||||||
|
|
||||||
OutputPath = _dialogManager.PromptSaveFilePath(filter, defaultFileName);
|
var outputPath = _dialogManager.PromptSaveFilePath(filter, defaultFileName);
|
||||||
|
if (!string.IsNullOrWhiteSpace(outputPath))
|
||||||
|
OutputPath = outputPath;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OutputPath = _dialogManager.PromptDirectoryPath();
|
var outputPath = _dialogManager.PromptDirectoryPath();
|
||||||
|
if (!string.IsNullOrWhiteSpace(outputPath))
|
||||||
|
OutputPath = outputPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue