mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Remove anchient check from the code
We removed global tabs like 4 years ago, so no need to have the check. Speeds up the setting loading a bit more again
This commit is contained in:
parent
c5d5cd2c59
commit
ce3ac604f2
1 changed files with 3 additions and 11 deletions
|
@ -253,19 +253,11 @@ Item
|
|||
id: delegate
|
||||
|
||||
width: scrollView.width
|
||||
height: provider.properties.enabled === "True" ? contents.delegateHeight: 0
|
||||
height: enabled ? contents.delegateHeight: 0
|
||||
Behavior on height { NumberAnimation { duration: 100 } }
|
||||
opacity: provider.properties.enabled === "True" ? 1 : 0
|
||||
opacity: enabled ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||
enabled:
|
||||
{
|
||||
if (!Cura.ExtruderManager.activeExtruderStackId && machineExtruderCount.properties.value > 1)
|
||||
{
|
||||
// disable all controls on the global tab, except categories
|
||||
return model.type === "category"
|
||||
}
|
||||
return provider.properties.enabled === "True"
|
||||
}
|
||||
enabled: provider.properties.enabled === "True"
|
||||
|
||||
property var definition: model
|
||||
property var settingDefinitionsModel: definitionsModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue