mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:19:02 +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"
|
||||
|
||||
Instantiator {
|
||||
model: UM.OutputDevicesModel { }
|
||||
model: UM.OutputDevicesModel { id: devicesModel; }
|
||||
|
||||
MenuItem {
|
||||
text: model.description
|
||||
onTriggered: model.requestWriteToCurrentDevice();
|
||||
onTriggered: devicesModel.requestWriteToDevice(model.id);
|
||||
}
|
||||
onObjectAdded: saveAllMenu.insertItem(index, object)
|
||||
onObjectRemoved: saveAllMenu.removeItem(object)
|
||||
|
@ -126,7 +126,7 @@ Rectangle {
|
||||
}
|
||||
label: Item { }
|
||||
}
|
||||
onClicked: devicesModel.requestWriteToCurrentDevice()
|
||||
onClicked: devicesModel.requestWriteToDevice(devicesModel.currentDevice.id)
|
||||
}
|
||||
|
||||
Button {
|
||||
|
Loading…
x
Reference in New Issue
Block a user