web/remux: correctly unset processing state

This commit is contained in:
dumbmoron 2024-08-17 13:26:10 +00:00
parent 0e461d4ebe
commit d446dfd87e
No known key found for this signature in database

View file

@ -43,7 +43,7 @@
const render = async () => {
if (!file || processing) return;
await ff.init();
try {
progress = '';
processing = true;
@ -71,15 +71,16 @@
args: ['-c', 'copy', '-map', '0']
});
processing = false;
if (render) {
openURL(URL.createObjectURL(render));
} else {
console.log("not a valid file");
}
} finally {
processing = false;
file = undefined;
}
};
$: if (file) {