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
commit c49ac6880d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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