mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 20:33:14 +08:00
Rename function name to be more clear to what it does.
Contributes to CURA-5942.
This commit is contained in:
parent
63fab9f038
commit
fa1ef5c45c
@ -20,7 +20,7 @@ Button
|
|||||||
property var outputDevice: null
|
property var outputDevice: null
|
||||||
property var printerTypesList: []
|
property var printerTypesList: []
|
||||||
|
|
||||||
function setPrinterTypesList()
|
function updatePrinterTypesList()
|
||||||
{
|
{
|
||||||
printerTypesList = (checked && (outputDevice != null)) ? outputDevice.uniquePrinterTypes : []
|
printerTypesList = (checked && (outputDevice != null)) ? outputDevice.uniquePrinterTypes : []
|
||||||
}
|
}
|
||||||
@ -97,14 +97,14 @@ Button
|
|||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: outputDevice
|
target: outputDevice
|
||||||
onUniqueConfigurationsChanged: setPrinterTypesList()
|
onUniqueConfigurationsChanged: updatePrinterTypesList()
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Cura.MachineManager
|
target: Cura.MachineManager
|
||||||
onOutputDevicesChanged: setPrinterTypesList()
|
onOutputDevicesChanged: updatePrinterTypesList()
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: setPrinterTypesList()
|
Component.onCompleted: updatePrinterTypesList()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user