mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Prevent undefined qml warnings
CURA-6935
This commit is contained in:
parent
2beeca0687
commit
007add7fc2
2 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,7 @@ SettingItem
|
|||
base.setActiveFocusToNextSetting(false)
|
||||
}
|
||||
|
||||
currentIndex: propertyProvider.properties.value
|
||||
currentIndex: propertyProvider.properties.value !== undefined ? propertyProvider.properties.value : 0
|
||||
|
||||
property string color: "#fff"
|
||||
|
||||
|
|
|
@ -277,6 +277,10 @@ Item
|
|||
// Observed when loading workspace, probably when SettingItems are removed.
|
||||
return false
|
||||
}
|
||||
if(globalPropertyProvider.properties.limit_to_extruder === undefined)
|
||||
{
|
||||
return false
|
||||
}
|
||||
return Cura.SettingInheritanceManager.getOverridesForExtruder(definition.key, String(globalPropertyProvider.properties.limit_to_extruder)).indexOf(definition.key) >= 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue