mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-31 23:25:39 +02:00
Disable 'resizeInpaintingEditor' when 'maskSetting' is unchecked.
This commit is contained in:
parent
bab86c9ce2
commit
68c4b55945
@ -264,6 +264,9 @@ async function healthCheck() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function resizeInpaintingEditor() {
|
function resizeInpaintingEditor() {
|
||||||
|
if (!maskSetting.checked) {
|
||||||
|
return
|
||||||
|
}
|
||||||
let widthValue = parseInt(widthField.value)
|
let widthValue = parseInt(widthField.value)
|
||||||
let heightValue = parseInt(heightField.value)
|
let heightValue = parseInt(heightField.value)
|
||||||
if (widthValue === heightValue) {
|
if (widthValue === heightValue) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user