Removed the option to disable it

This commit is contained in:
ManInDark 2023-06-29 12:00:59 +02:00
parent 19405ee960
commit d90a7de8ba
No known key found for this signature in database
GPG Key ID: 72EC12A5B2D62779

View File

@ -62,7 +62,6 @@ const taskConfigSetup = {
let imageCounter = 0
let imageRequest = []
let SHOW_PROGRESS = true
let promptField = document.querySelector("#prompt")
let promptsFromFileSelector = document.querySelector("#prompt_from_file")
@ -1177,10 +1176,8 @@ function abortTask(task) {
console.error(e)
}
})
if (SHOW_PROGRESS) {
document.title = "Stopped - Easy Diffusion"
}
}
function onTaskErrorHandler(task, reqBody, instance, reason) {
if (!task.isProcessing) {
@ -1285,10 +1282,8 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) {
if (isSoundEnabled()) {
playSound()
}
if (SHOW_PROGRESS) {
updateTitle()
}
}
function updateTitle() {
let img_remaining = [...document.querySelectorAll("div .imageTaskContainer").entries()].map(c => htmlTaskMap.get(c[1])).filter(task => task.isProcessing).map(task => task.numOutputsTotal - Math.max(0, (task.batchesDone - 1) * task.reqBody.num_outputs)).reduce((total, value) => total + value, 0);
@ -1390,10 +1385,8 @@ async function onTaskStart(task) {
renderButtons.style.display = "flex"
renameMakeImageButton()
updateInitialText()
if (SHOW_PROGRESS) {
updateTitle();
}
}
/* Hover effect for the init image in the task list */
function createInitImageHover(taskEntry, task) {