Fix a bug with drag-and-drop where the upscale dropdown would not get enabled/disabled based on the setting

This commit is contained in:
cmdr2 2022-11-08 18:46:55 +05:30
parent 1176ddcc85
commit a86b6bfbd6

View File

@ -136,7 +136,9 @@ const TASK_MAPPING = {
upscaleModelField.value = use_upscale
if (upscaleModelField.value) { // Is a valid value for the field.
useUpscalingField.checked = true
upscaleModelField.disabled = false
} else { // Not a valid value, restore the old value and disable the filter.
upscaleModelField.disabled = true
upscaleModelField.value = oldVal
useUpscalingField.checked = false
}