mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Write to the right device after changes in Uranium API
This commit is contained in:
parent
c2e672591c
commit
078295d6e1
2 changed files with 3 additions and 3 deletions
|
@ -55,11 +55,11 @@ UM.MainWindow {
|
||||||
title: "Save All"
|
title: "Save All"
|
||||||
|
|
||||||
Instantiator {
|
Instantiator {
|
||||||
model: UM.OutputDevicesModel { }
|
model: UM.OutputDevicesModel { id: devicesModel; }
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: model.description
|
text: model.description
|
||||||
onTriggered: model.requestWriteToCurrentDevice();
|
onTriggered: devicesModel.requestWriteToDevice(model.id);
|
||||||
}
|
}
|
||||||
onObjectAdded: saveAllMenu.insertItem(index, object)
|
onObjectAdded: saveAllMenu.insertItem(index, object)
|
||||||
onObjectRemoved: saveAllMenu.removeItem(object)
|
onObjectRemoved: saveAllMenu.removeItem(object)
|
||||||
|
|
|
@ -126,7 +126,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
label: Item { }
|
label: Item { }
|
||||||
}
|
}
|
||||||
onClicked: devicesModel.requestWriteToCurrentDevice()
|
onClicked: devicesModel.requestWriteToDevice(devicesModel.currentDevice.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue