Disable 'resizeInpaintingEditor' when 'maskSetting' is unchecked.

This commit is contained in:
Marc-Andre Ferland 2022-10-08 07:55:24 -04:00
parent bab86c9ce2
commit 68c4b55945

View File

@ -264,6 +264,9 @@ async function healthCheck() {
}
}
function resizeInpaintingEditor() {
if (!maskSetting.checked) {
return
}
let widthValue = parseInt(widthField.value)
let heightValue = parseInt(heightField.value)
if (widthValue === heightValue) {