mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-11 02:29:01 +08:00
Extra comment for RestoreBackupJob
This commit is contained in:
parent
ebfad16508
commit
d11b3b0921
@ -42,7 +42,7 @@ class RestoreBackupJob(Job):
|
|||||||
error_callback = self._onRestoreRequestCompleted
|
error_callback = self._onRestoreRequestCompleted
|
||||||
)
|
)
|
||||||
|
|
||||||
self._job_done.wait()
|
self._job_done.wait() # A job is considered finished when the run function completes
|
||||||
|
|
||||||
def _onRestoreRequestCompleted(self, reply: QNetworkReply, error: Optional["QNetworkReply.NetworkError"] = None):
|
def _onRestoreRequestCompleted(self, reply: QNetworkReply, error: Optional["QNetworkReply.NetworkError"] = None):
|
||||||
if not HttpRequestManager.replyIndicatesSuccess(reply, error):
|
if not HttpRequestManager.replyIndicatesSuccess(reply, error):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user