mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:59:02 +08:00
Fix some more bindings for SettingItem
This commit is contained in:
parent
27370dd45d
commit
1b36a8e12c
@ -32,7 +32,7 @@ Item
|
|||||||
// Create properties to put property provider stuff in (bindings break in qt 5.5.1 otherwise)
|
// Create properties to put property provider stuff in (bindings break in qt 5.5.1 otherwise)
|
||||||
property var state: propertyProvider.properties.state
|
property var state: propertyProvider.properties.state
|
||||||
// There is no resolve property if there is only one stack.
|
// There is no resolve property if there is only one stack.
|
||||||
property var resolve: Cura.MachineManager.activeStackId != Cura.MachineManager.activeMachineId ? propertyProvider.properties.resolve : "None"
|
property var resolve: Cura.MachineManager.activeStackId !== Cura.MachineManager.activeMachineId ? propertyProvider.properties.resolve : "None"
|
||||||
property var stackLevels: propertyProvider.stackLevels
|
property var stackLevels: propertyProvider.stackLevels
|
||||||
property var stackLevel: stackLevels[0]
|
property var stackLevel: stackLevels[0]
|
||||||
|
|
||||||
@ -233,19 +233,19 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
// There are no settings with any warning.
|
// There are no settings with any warning.
|
||||||
if (Cura.SettingInheritanceManager.settingsWithInheritanceWarning.length == 0)
|
if (Cura.SettingInheritanceManager.settingsWithInheritanceWarning.length === 0)
|
||||||
{
|
{
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// This setting has a resolve value, so an inheritance warning doesn't do anything.
|
// This setting has a resolve value, so an inheritance warning doesn't do anything.
|
||||||
if (resolve != "None")
|
if (resolve !== "None")
|
||||||
{
|
{
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the setting does not have a limit_to_extruder property (or is -1), use the active stack.
|
// If the setting does not have a limit_to_extruder property (or is -1), use the active stack.
|
||||||
if (globalPropertyProvider.properties.limit_to_extruder == null || String(globalPropertyProvider.properties.limit_to_extruder) == "-1")
|
if (globalPropertyProvider.properties.limit_to_extruder === null || String(globalPropertyProvider.properties.limit_to_extruder) === "-1")
|
||||||
{
|
{
|
||||||
return Cura.SettingInheritanceManager.settingsWithInheritanceWarning.indexOf(definition.key) >= 0
|
return Cura.SettingInheritanceManager.settingsWithInheritanceWarning.indexOf(definition.key) >= 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user