mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-17 03:23:01 +02:00
Disable 'resizeInpaintingEditor' when 'maskSetting' is unchecked.
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user