mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:15:51 +08:00
Show a message to indicate we are saving to an SD card
Contributes to Asana issue 39317829262610
This commit is contained in:
parent
e433e0d599
commit
b7912c30f7
@ -429,10 +429,15 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
filename = os.path.join(path, node.getName()[0:node.getName().rfind(".")] + ".gcode")
|
filename = os.path.join(path, node.getName()[0:node.getName().rfind(".")] + ".gcode")
|
||||||
|
|
||||||
|
message = Message(self._output_devices[device]["description"], 0, False, -1)
|
||||||
|
message.show()
|
||||||
|
|
||||||
job = WriteMeshJob(filename, node.getMeshData())
|
job = WriteMeshJob(filename, node.getMeshData())
|
||||||
job._sdcard = device
|
job._sdcard = device
|
||||||
|
job._message = message
|
||||||
job.start()
|
job.start()
|
||||||
job.finished.connect(self._onWriteToSDFinished)
|
job.finished.connect(self._onWriteToSDFinished)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def _removableDrivesChanged(self):
|
def _removableDrivesChanged(self):
|
||||||
@ -490,6 +495,9 @@ class CuraApplication(QtApplication):
|
|||||||
"eject",
|
"eject",
|
||||||
self._i18n_catalog.i18nc("Message action tooltip, {0} is sdcard", "Eject SD Card {0}").format(job._sdcard)
|
self._i18n_catalog.i18nc("Message action tooltip, {0} is sdcard", "Eject SD Card {0}").format(job._sdcard)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
job._message.hide()
|
||||||
|
|
||||||
message._sdcard = job._sdcard
|
message._sdcard = job._sdcard
|
||||||
message.actionTriggered.connect(self._onMessageActionTriggered)
|
message.actionTriggered.connect(self._onMessageActionTriggered)
|
||||||
message.show()
|
message.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user