mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-09 16:19:00 +08:00
Process supposed to stop when already sending a job.
When using the visibility of the progress bar to detect if a job is already being sent, then make actually sure the progress bar is visible the moment the job starts, not at some unspecified time later in a method that might not even trigger if there is already a mesh ... so it's unlikely to even work, since the thing it was intended to prevent _very_ likely has the same mesh anyway. CURA-8004
This commit is contained in:
parent
4c5dac0dfd
commit
1eb1a943b2
@ -191,6 +191,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||
if self._progress.visible:
|
||||
PrintJobUploadBlockedMessage().show()
|
||||
return
|
||||
self._progress.show()
|
||||
|
||||
# Indicate we have started sending a job.
|
||||
self.writeStarted.emit(self)
|
||||
@ -229,7 +230,6 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||
"""
|
||||
if not self._tool_path:
|
||||
return self._onUploadError()
|
||||
self._progress.show()
|
||||
self._pre_upload_print_job = job_response # store the last uploaded job to prevent re-upload of the same file
|
||||
self._api.uploadToolPath(job_response, self._tool_path, self._onPrintJobUploaded, self._progress.update,
|
||||
self._onUploadError)
|
||||
|
Loading…
x
Reference in New Issue
Block a user