mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Track progress from export job
This way we can show a progress bar. Contributes to issue CURA-8609.
This commit is contained in:
parent
052e33e66b
commit
025ef743ee
2 changed files with 27 additions and 6 deletions
|
@ -37,12 +37,13 @@ class UploadMaterialsJob(Job):
|
|||
self._scope = JsonDecoratorScope(UltimakerCloudScope(cura.CuraApplication.CuraApplication.getInstance())) # type: JsonDecoratorScope
|
||||
|
||||
uploadCompleted = Signal()
|
||||
uploadProgressChanged = Signal()
|
||||
|
||||
def run(self):
|
||||
archive_file = tempfile.NamedTemporaryFile("wb", delete = False)
|
||||
archive_file.close()
|
||||
|
||||
self._material_sync.exportAll(QUrl.fromLocalFile(archive_file.name))
|
||||
self._material_sync.exportAll(QUrl.fromLocalFile(archive_file.name), notify_progress = self.uploadProgressChanged)
|
||||
|
||||
http = HttpRequestManager.getInstance()
|
||||
http.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue