From d90a7de8ba4507f047997e154f4e39d4c7953a01 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Thu, 29 Jun 2023 12:00:59 +0200 Subject: [PATCH] Removed the option to disable it --- ui/media/js/main.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 6c138061..2beef40e 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -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,9 +1176,7 @@ function abortTask(task) { console.error(e) } }) - if (SHOW_PROGRESS) { - document.title = "Stopped - Easy Diffusion" - } + document.title = "Stopped - Easy Diffusion" } function onTaskErrorHandler(task, reqBody, instance, reason) { @@ -1285,9 +1282,7 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) { if (isSoundEnabled()) { playSound() } - if (SHOW_PROGRESS) { - updateTitle() - } + updateTitle() } function updateTitle() { @@ -1390,9 +1385,7 @@ async function onTaskStart(task) { renderButtons.style.display = "flex" renameMakeImageButton() updateInitialText() - if (SHOW_PROGRESS) { - updateTitle(); - } + updateTitle(); } /* Hover effect for the init image in the task list */