mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
STAR-322: Fixing job uploads
This commit is contained in:
parent
02efc9e1a9
commit
8ea4edf67e
4 changed files with 49 additions and 54 deletions
|
@ -60,7 +60,7 @@ class NetworkClient:
|
|||
|
||||
## Executes the correct callback method when a network request finishes.
|
||||
def __handleOnFinished(self, reply: QNetworkReply) -> None:
|
||||
|
||||
|
||||
# Due to garbage collection, we need to cache certain bits of post operations.
|
||||
# As we don't want to keep them around forever, delete them if we get a reply.
|
||||
if reply.operation() == QNetworkAccessManager.PostOperation:
|
||||
|
@ -79,6 +79,8 @@ class NetworkClient:
|
|||
callback_key = reply.url().toString() + str(reply.operation())
|
||||
if callback_key in self._on_finished_callbacks:
|
||||
self._on_finished_callbacks[callback_key](reply)
|
||||
else:
|
||||
Logger.log("w", "Received reply to URL %s but no callbacks are registered", reply.url())
|
||||
|
||||
## Removes all cached Multi-Part items.
|
||||
def _clearCachedMultiPart(self, reply: QNetworkReply) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue