mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 18:08:00 +02:00
Removed the option to disable it
This commit is contained in:
parent
19405ee960
commit
d90a7de8ba
@ -62,7 +62,6 @@ const taskConfigSetup = {
|
|||||||
|
|
||||||
let imageCounter = 0
|
let imageCounter = 0
|
||||||
let imageRequest = []
|
let imageRequest = []
|
||||||
let SHOW_PROGRESS = true
|
|
||||||
|
|
||||||
let promptField = document.querySelector("#prompt")
|
let promptField = document.querySelector("#prompt")
|
||||||
let promptsFromFileSelector = document.querySelector("#prompt_from_file")
|
let promptsFromFileSelector = document.querySelector("#prompt_from_file")
|
||||||
@ -1177,10 +1176,8 @@ function abortTask(task) {
|
|||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (SHOW_PROGRESS) {
|
|
||||||
document.title = "Stopped - Easy Diffusion"
|
document.title = "Stopped - Easy Diffusion"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function onTaskErrorHandler(task, reqBody, instance, reason) {
|
function onTaskErrorHandler(task, reqBody, instance, reason) {
|
||||||
if (!task.isProcessing) {
|
if (!task.isProcessing) {
|
||||||
@ -1285,10 +1282,8 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) {
|
|||||||
if (isSoundEnabled()) {
|
if (isSoundEnabled()) {
|
||||||
playSound()
|
playSound()
|
||||||
}
|
}
|
||||||
if (SHOW_PROGRESS) {
|
|
||||||
updateTitle()
|
updateTitle()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function 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);
|
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"
|
renderButtons.style.display = "flex"
|
||||||
renameMakeImageButton()
|
renameMakeImageButton()
|
||||||
updateInitialText()
|
updateInitialText()
|
||||||
if (SHOW_PROGRESS) {
|
|
||||||
updateTitle();
|
updateTitle();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Hover effect for the init image in the task list */
|
/* Hover effect for the init image in the task list */
|
||||||
function createInitImageHover(taskEntry, task) {
|
function createInitImageHover(taskEntry, task) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user