mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:28:58 +08:00
Prevent undefined qml warnings
CURA-6935
This commit is contained in:
parent
2beeca0687
commit
007add7fc2
@ -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…
x
Reference in New Issue
Block a user