This commit is contained in:
Nikita 2025-10-23 22:21:40 +03:00
parent ca936aada7
commit 9cbeaef88d

View file

@ -204,21 +204,16 @@ export default function ExportModal(Props) {
setStrudelMaxPolyphony(maxPolyphony); setStrudelMaxPolyphony(maxPolyphony);
setStrudelMultiChannelOrbits(multiChannelOrbits); setStrudelMultiChannelOrbits(multiChannelOrbits);
setTimeout(refreshProgress, 1000); setTimeout(refreshProgress, 1000);
await handleExport( await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
startCycle, .then(() => {
endCycle, const modal = document.getElementById('exportModal');
sampleRate, modal.close();
maxPolyphony, })
multiChannelOrbits, .finally(() => {
downloadName, setExporting(false);
).then(() => { setProgress(0);
const modal = document.getElementById('exportModal'); setLength(1);
modal.close(); });
}).finally(() => {
setExporting(false);
setProgress(0);
setLength(1);
});
}} }}
> >
<span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span> <span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span>