forked from extern/easydiffusion
Fix number on the "Make X images" button
With this change, the number of prompt variants is taken into account when computing the number of images that will be generated. X = getPrompts().length * numOutputsTotalField.value
This commit is contained in:
parent
df3d00ef94
commit
9d9fc1683a
@ -1138,7 +1138,7 @@ widthField.addEventListener('change', onDimensionChange)
|
||||
heightField.addEventListener('change', onDimensionChange)
|
||||
|
||||
function renameMakeImageButton() {
|
||||
let totalImages = Math.max(parseInt(numOutputsTotalField.value), parseInt(numOutputsParallelField.value))
|
||||
let totalImages = Math.max(parseInt(numOutputsTotalField.value), parseInt(numOutputsParallelField.value)) * getPrompts().length
|
||||
let imageLabel = 'Image'
|
||||
if (totalImages > 1) {
|
||||
imageLabel = totalImages + ' Images'
|
||||
@ -1483,6 +1483,9 @@ function resumeClient() {
|
||||
})
|
||||
}
|
||||
|
||||
promptField.addEventListener("input", debounce( renameMakeImageButton, 1000) )
|
||||
|
||||
|
||||
pauseBtn.addEventListener("click", function () {
|
||||
pauseClient = true
|
||||
pauseBtn.style.display="none"
|
||||
|
Loading…
Reference in New Issue
Block a user