Bug fix - autosave wasn't saving the changes in the textboxes next to guidance scale and prompt strength sliders

This commit is contained in:
cmdr2 2022-10-20 15:26:18 +05:30
parent 63e8614ace
commit f4bcc1f2e5

View File

@ -1172,6 +1172,7 @@ function updateGuidanceScaleSlider() {
} }
guidanceScaleSlider.value = guidanceScaleField.value * 10 guidanceScaleSlider.value = guidanceScaleField.value * 10
guidanceScaleSlider.dispatchEvent(new Event("change"))
} }
guidanceScaleSlider.addEventListener('input', updateGuidanceScale) guidanceScaleSlider.addEventListener('input', updateGuidanceScale)
@ -1190,6 +1191,7 @@ function updatePromptStrengthSlider() {
} }
promptStrengthSlider.value = promptStrengthField.value * 100 promptStrengthSlider.value = promptStrengthField.value * 100
promptStrengthSlider.dispatchEvent(new Event("change"))
} }
promptStrengthSlider.addEventListener('input', updatePromptStrength) promptStrengthSlider.addEventListener('input', updatePromptStrength)