Trigger output path prompt when clicking the export button, if the path hasn't been set yet

pull/1003/head
Tyrrrz 2 years ago
parent 71751b350f
commit 6d3adf9fde

@ -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…
Cancel
Save