mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 18:43:13 +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 printerTypesList: []
|
||||
|
||||
function setPrinterTypesList()
|
||||
function updatePrinterTypesList()
|
||||
{
|
||||
printerTypesList = (checked && (outputDevice != null)) ? outputDevice.uniquePrinterTypes : []
|
||||
}
|
||||
@ -97,14 +97,14 @@ Button
|
||||
Connections
|
||||
{
|
||||
target: outputDevice
|
||||
onUniqueConfigurationsChanged: setPrinterTypesList()
|
||||
onUniqueConfigurationsChanged: updatePrinterTypesList()
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onOutputDevicesChanged: setPrinterTypesList()
|
||||
onOutputDevicesChanged: updatePrinterTypesList()
|
||||
}
|
||||
|
||||
Component.onCompleted: setPrinterTypesList()
|
||||
Component.onCompleted: updatePrinterTypesList()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user