From 68c4b55945a05098de5f6d0c957b6b2be65ea3eb Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Sat, 8 Oct 2022 07:55:24 -0400 Subject: [PATCH] Disable 'resizeInpaintingEditor' when 'maskSetting' is unchecked. --- ui/media/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/media/main.js b/ui/media/main.js index 7db632c8..ad79caf6 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -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) {