don't show spinner in case cancelled and can't remove

This commit is contained in:
joshuaboud 2021-11-15 15:53:02 -04:00
parent 17e4a3cd4e
commit 5575fa76ac
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
1 changed files with 4 additions and 4 deletions

View File

@ -47,9 +47,10 @@ export class NavDragDrop {
uploader.using_webkit = false;
uploads.push(uploader);
}
uploads = await this.handle_conflicts(uploads);
this.upload_manager.add(... uploads);
this.nav_window_ref.stop_load();
if (uploads.length) {
uploads = await this.handle_conflicts(uploads);
this.upload_manager.add(... uploads);
}
}
document.getElementById("nav-upload-btn").addEventListener("click", this.upload_dialog.bind(this));
}
@ -213,7 +214,6 @@ export class NavDragDrop {
}
upload_dialog() {
this.nav_window_ref.start_load();
this.upload_element.click();
}
}