From 23ba912db06f50ecbd1814aeff1f0d78091836bd Mon Sep 17 00:00:00 2001 From: JeLuF Date: Sun, 5 Feb 2023 17:33:43 +0100 Subject: [PATCH] Fix 'Pause All' function If 'pause all' is clicked during the last scheduled job, the 'resume all' button gets hidden when the jobs terminates, making it impossible to unpause the engine. https://discord.com/channels/1014774730907209781/1014780368890630164/1071584183417323602 --- ui/media/js/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index b8f38961..5691c761 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -673,6 +673,9 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) { return } + if (pauseClient) { + resumeBtn.click() + } renderButtons.style.display = 'none' renameMakeImageButton()