mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Removed file progress from removable output device, as writefile job now handles that itself
This commit is contained in:
parent
dafeab4e8a
commit
f04d1efb8d
1 changed files with 1 additions and 7 deletions
|
@ -91,7 +91,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
||||||
|
|
||||||
self.writeStarted.emit(self)
|
self.writeStarted.emit(self)
|
||||||
|
|
||||||
job._message = message
|
job.setMessage(message)
|
||||||
self._writing = True
|
self._writing = True
|
||||||
job.start()
|
job.start()
|
||||||
except PermissionError as e:
|
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()))
|
raise OutputDeviceError.WriteRequestFailedError("Could not find a file name when trying to write to {device}.".format(device = self.getName()))
|
||||||
|
|
||||||
def _onProgress(self, job, progress):
|
def _onProgress(self, job, progress):
|
||||||
if hasattr(job, "_message"):
|
|
||||||
job._message.setProgress(progress)
|
|
||||||
self.writeProgress.emit(self, progress)
|
self.writeProgress.emit(self, progress)
|
||||||
|
|
||||||
def _onFinished(self, job):
|
def _onFinished(self, job):
|
||||||
|
@ -128,10 +126,6 @@ class RemovableDriveOutputDevice(OutputDevice):
|
||||||
self._stream.close()
|
self._stream.close()
|
||||||
self._stream = None
|
self._stream = None
|
||||||
|
|
||||||
if hasattr(job, "_message"):
|
|
||||||
job._message.hide()
|
|
||||||
job._message = None
|
|
||||||
|
|
||||||
self._writing = False
|
self._writing = False
|
||||||
self.writeFinished.emit(self)
|
self.writeFinished.emit(self)
|
||||||
if job.getResult():
|
if job.getResult():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue