mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:49:03 +08:00
Fix QML warning assigning undefined to an integer field
Fixes the following QML warning in the logs: 2020-03-20 14:02:13,482 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [406]: file:///home/trin/Gedeeld/Projects/Cura/resources/qml/PrintSetupSelector/Recommended/RecommendedSupportSelector.qml:125:13: Unable to assign [undefined] to int Instead it now assigns the first extruder before a printer has been created. The first extruder also doesn't exist yet at this point, but this doesn't really matter because there is no interface to show yet at this point. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
c44f82c44f
commit
3af91bfca7
@ -122,7 +122,7 @@ Item
|
||||
}
|
||||
}
|
||||
|
||||
currentIndex: supportExtruderNr.properties.value
|
||||
currentIndex: (supportExtruderNr.properties.value !== undefined) ? supportExtruderNr.properties.value : 0
|
||||
|
||||
property string color: "#fff"
|
||||
Connections
|
||||
|
Loading…
x
Reference in New Issue
Block a user