mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 16:23:28 +01:00
remove task from dome when removing images
Changing the functionality to remove task from dom when all images have been removed. This will save system memory in the browser allowing better performance.
This commit is contained in:
parent
b7a7a7d31f
commit
2d0a76c5a4
@ -302,7 +302,7 @@ function showImages(reqBody, res, outputContainer, livePreview) {
|
||||
}
|
||||
if(allHidden === true) {
|
||||
const req = htmlTaskMap.get(parentTaskContainer)
|
||||
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")}
|
||||
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.parentNode.removeChild(parentTaskContainer)}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user