Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2017-03-24 18:32:39 +0300
committerJaime van Kessel <nallath@gmail.com>2017-03-24 18:32:39 +0300
commitf04d1efb8d6fa24fdd24a7665bb9effa95a6a53d (patch)
treeb2b06f1d99eca076e00b847270b36d5a23d34660 /plugins/RemovableDriveOutputDevice
parentdafeab4e8aadbdfc4c1c482342f6cc4ee4978e31 (diff)
Removed file progress from removable output device, as writefile job now handles that itself
Diffstat (limited to 'plugins/RemovableDriveOutputDevice')
-rw-r--r--plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py b/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
index d971c007bc..c5c18f9709 100644
--- a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
+++ b/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
@@ -91,7 +91,7 @@ class RemovableDriveOutputDevice(OutputDevice):
self.writeStarted.emit(self)
- job._message = message
+ job.setMessage(message)
self._writing = True
job.start()
except PermissionError as e:
@@ -118,8 +118,6 @@ class RemovableDriveOutputDevice(OutputDevice):
raise OutputDeviceError.WriteRequestFailedError("Could not find a file name when trying to write to {device}.".format(device = self.getName()))
def _onProgress(self, job, progress):
- if hasattr(job, "_message"):
- job._message.setProgress(progress)
self.writeProgress.emit(self, progress)
def _onFinished(self, job):
@@ -128,10 +126,6 @@ class RemovableDriveOutputDevice(OutputDevice):
self._stream.close()
self._stream = None
- if hasattr(job, "_message"):
- job._message.hide()
- job._message = None
-
self._writing = False
self.writeFinished.emit(self)
if job.getResult():