mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-13 06:34:23 -04:00
Trigger output path prompt when clicking the export button, if the path hasn't been set yet
This commit is contained in:
parent
71751b350f
commit
6d3adf9fde
1 changed files with 10 additions and 2 deletions
|
@ -113,10 +113,18 @@ public class ExportSetupViewModel : DialogScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool CanConfirm => !string.IsNullOrWhiteSpace(OutputPath);
|
|
||||||
|
|
||||||
public void Confirm()
|
public void Confirm()
|
||||||
{
|
{
|
||||||
|
// Prompt the output path if it's not set yet
|
||||||
|
if (string.IsNullOrWhiteSpace(OutputPath))
|
||||||
|
{
|
||||||
|
ShowOutputPathPrompt();
|
||||||
|
|
||||||
|
// If the output path is still not set, cancel the export
|
||||||
|
if (string.IsNullOrWhiteSpace(OutputPath))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Persist preferences
|
// Persist preferences
|
||||||
_settingsService.LastExportFormat = SelectedFormat;
|
_settingsService.LastExportFormat = SelectedFormat;
|
||||||
_settingsService.LastPartitionLimitValue = PartitionLimitValue;
|
_settingsService.LastPartitionLimitValue = PartitionLimitValue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue