mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-30 06:40:09 +02:00
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:
parent
1176ddcc85
commit
a86b6bfbd6
@ -136,7 +136,9 @@ const TASK_MAPPING = {
|
|||||||
upscaleModelField.value = use_upscale
|
upscaleModelField.value = use_upscale
|
||||||
if (upscaleModelField.value) { // Is a valid value for the field.
|
if (upscaleModelField.value) { // Is a valid value for the field.
|
||||||
useUpscalingField.checked = true
|
useUpscalingField.checked = true
|
||||||
|
upscaleModelField.disabled = false
|
||||||
} else { // Not a valid value, restore the old value and disable the filter.
|
} else { // Not a valid value, restore the old value and disable the filter.
|
||||||
|
upscaleModelField.disabled = true
|
||||||
upscaleModelField.value = oldVal
|
upscaleModelField.value = oldVal
|
||||||
useUpscalingField.checked = false
|
useUpscalingField.checked = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user