Use the job name for saving files

CURA-183 #Done
This commit is contained in:
Arjen Hiemstra 2015-09-23 18:21:39 +02:00
parent 5b2cdb8012
commit d4ea9246f6
2 changed files with 4 additions and 3 deletions

View file

@ -83,6 +83,7 @@ Rectangle {
height: UM.Theme.sizes.sidebar_inputFields.height
property int unremovableSpacing: 5
text: ''
onTextChanged: Printer.setJobName(text)
onEditingFinished: {
if (printJobTextfield.text != ''){
printJobTextfield.focus = false
@ -189,7 +190,7 @@ Rectangle {
text: UM.OutputDeviceManager.activeDeviceShortDescription
onClicked:
{
UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice)
UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, Printer.jobName)
}
style: ButtonStyle {