mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:19:04 +08:00
Write to the right device after changes in Uranium API
This commit is contained in:
parent
c2e672591c
commit
078295d6e1
@ -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…
x
Reference in New Issue
Block a user