mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Allow syncing materials & printcores from the Printers preference pane
CURA-2276
This commit is contained in:
parent
98f0fd2a08
commit
f11308e74e
2 changed files with 12 additions and 1 deletions
|
|
@ -81,6 +81,16 @@ class DiscoverUM3Action(MachineAction):
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
|
def loadConfigurationFromPrinter(self):
|
||||||
|
machine_manager = Application.getInstance().getMachineManager()
|
||||||
|
hotendIds = machine_manager.printerOutputDevices[0].hotendIds
|
||||||
|
for index in range(len(hotendIds)):
|
||||||
|
machine_manager.printerOutputDevices[0].hotendIdChanged.emit(index, hotendIds[index])
|
||||||
|
materialIds = machine_manager.printerOutputDevices[0].materialIds
|
||||||
|
for index in range(len(materialIds)):
|
||||||
|
machine_manager.printerOutputDevices[0].materialIdChanged.emit(index, materialIds[index])
|
||||||
|
|
||||||
def _createAdditionalComponentsView(self):
|
def _createAdditionalComponentsView(self):
|
||||||
Logger.log("d", "Creating additional ui components for UM3.")
|
Logger.log("d", "Creating additional ui components for UM3.")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,8 @@ Item
|
||||||
{
|
{
|
||||||
tooltip: catalog.i18nc("@info:tooltip", "Load the configuration of the printer into Cura")
|
tooltip: catalog.i18nc("@info:tooltip", "Load the configuration of the printer into Cura")
|
||||||
text: catalog.i18nc("@action:button", "Activate Configuration")
|
text: catalog.i18nc("@action:button", "Activate Configuration")
|
||||||
visible: base.printerConnected && false
|
visible: base.printerConnected
|
||||||
|
onClicked: manager.loadConfigurationFromPrinter()
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue