mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Manually trigger upload finished callback after request finished - CURA-4398
This commit is contained in:
parent
2b06d04327
commit
cbd0bcd1b5
1 changed files with 1 additions and 2 deletions
|
@ -23,10 +23,8 @@ from PyQt5.QtWidgets import QMessageBox
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import gzip
|
import gzip
|
||||||
import zlib
|
|
||||||
|
|
||||||
from time import time
|
from time import time
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
@ -1179,6 +1177,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
# Remove cached post request items.
|
# Remove cached post request items.
|
||||||
del self._material_post_objects[id(reply)]
|
del self._material_post_objects[id(reply)]
|
||||||
elif "print_job" in reply_url:
|
elif "print_job" in reply_url:
|
||||||
|
self._onUploadFinished() # Make sure the upload flag is reset as reply.finished is not always triggered
|
||||||
try:
|
try:
|
||||||
reply.uploadProgress.disconnect(self._onUploadProgress)
|
reply.uploadProgress.disconnect(self._onUploadProgress)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue