Merge pull request #931 from patriceac/patch-41

Fix the restoration of the inpainting toggle
This commit is contained in:
cmdr2
2023-02-23 19:29:40 +05:30
committed by GitHub

View File

@ -357,6 +357,7 @@ function restoreTaskToUI(task, fieldsToSkip) {
initImagePreview.addEventListener('load', function() {
if (Boolean(task.reqBody.mask)) {
imageInpainter.setImg(task.reqBody.mask)
maskSetting.checked = true
}
}, { once: true })
initImagePreview.src = task.reqBody.init_image