mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06: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
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue