Merge pull request #653 from cmdr2/beta

Don't collapse the task entry if 'Stop Task' is pressed
This commit is contained in:
cmdr2 2022-12-12 19:56:49 +05:30 committed by GitHub
commit 0307114c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -820,6 +820,8 @@ function createTask(task) {
task['stopTask'] = taskEntry.querySelector('.stopTask')
task['stopTask'].addEventListener('click', (e) => {
e.stopPropagation()
let question = (task['isProcessing'] ? "Stop this task?" : "Remove this task?")
shiftOrConfirm(e, question, async function(e) {
if (task.batchesDone <= 0 || !task.isProcessing) {