WIP: Implement add machine from network device

This commit is contained in:
Lipu Fei 2019-03-13 12:04:52 +01:00
parent f7f5123fea
commit de9f6f47bd
5 changed files with 80 additions and 8 deletions

View file

@ -24,6 +24,8 @@ Button
property var outputDevice: null
property var printerTypesList: []
property var updatePrinterTypesFunction: updatePrinterTypesList
function updatePrinterTypesList()
{
printerTypesList = (outputDevice != null) ? outputDevice.uniquePrinterTypes : []
@ -87,14 +89,14 @@ Button
Connections
{
target: outputDevice
onUniqueConfigurationsChanged: updatePrinterTypesList()
onUniqueConfigurationsChanged: updatePrinterTypesFunction()
}
Connections
{
target: Cura.MachineManager
onOutputDevicesChanged: updatePrinterTypesList()
onOutputDevicesChanged: updatePrinterTypesFunction()
}
Component.onCompleted: updatePrinterTypesList()
Component.onCompleted: updatePrinterTypesFunction()
}