mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Manually trigger upload finished callback after request finished - CURA-4398
This commit is contained in:
parent
2b06d04327
commit
cbd0bcd1b5
@ -23,10 +23,8 @@ from PyQt5.QtWidgets import QMessageBox
|
||||
import json
|
||||
import os
|
||||
import gzip
|
||||
import zlib
|
||||
|
||||
from time import time
|
||||
from time import sleep
|
||||
|
||||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
@ -1179,6 +1177,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
# Remove cached post request items.
|
||||
del self._material_post_objects[id(reply)]
|
||||
elif "print_job" in reply_url:
|
||||
self._onUploadFinished() # Make sure the upload flag is reset as reply.finished is not always triggered
|
||||
try:
|
||||
reply.uploadProgress.disconnect(self._onUploadProgress)
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user