This commit is contained in:
2026-03-09 13:28:21 +00:00
parent ac29c68de0
commit 8e3c67565d
10 changed files with 536 additions and 78 deletions

View File

@@ -93,6 +93,10 @@ function injectHandBrakePresetOptions(categories, presetPayload) {
});
};
// "(kein Preset)" immer als erste Option — ermöglicht reinen CLI-Betrieb
normalizedOptions.push({ label: '(kein Preset nur CLI-Parameter)', value: '', disabled: false });
seenValues.add('');
for (const option of sourceOptions) {
if (option?.disabled) {
addGroupOption(option);
@@ -103,7 +107,7 @@ function injectHandBrakePresetOptions(categories, presetPayload) {
addSelectableOption(setting?.value);
addSelectableOption(setting?.defaultValue);
if (normalizedOptions.length === 0) {
if (normalizedOptions.length <= 1) {
return setting;
}