fix: "set all to" enabled with incompatible files

This commit is contained in:
Maya 2025-11-23 21:07:52 +03:00
parent 616f2a51d8
commit 39a6801376
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -74,8 +74,9 @@
{m["convert.panel.set_all_to"]()}
</p>
<div class="w-48 md:max-w-[6.5rem]">
<!-- check if all files have the same converters -->
<!-- video and audio together still have this dropdown disabled because audio has just ffmpeg (video has vertd & ffmpeg), even tho it can convert between video and audio -->
{#if files.files.length > 0 && files.files.every((f) => JSON.stringify(f.converters) === JSON.stringify(files.files[0].converters))}
{#if files.files.length > 0 && files.files.every((f) => f.converters.length) && files.files.every((f) => JSON.stringify(f.converters) === JSON.stringify(files.files[0].converters))}
<FormatDropdown
onselect={(r) =>
files.files.forEach((f) => {