mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -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
|
id: delegate
|
||||||
|
|
||||||
width: scrollView.width
|
width: scrollView.width
|
||||||
height: provider.properties.enabled === "True" ? contents.delegateHeight: 0
|
height: enabled ? contents.delegateHeight: 0
|
||||||
Behavior on height { NumberAnimation { duration: 100 } }
|
Behavior on height { NumberAnimation { duration: 100 } }
|
||||||
opacity: provider.properties.enabled === "True" ? 1 : 0
|
opacity: enabled ? 1 : 0
|
||||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||||
enabled:
|
enabled: provider.properties.enabled === "True"
|
||||||
{
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
|
|
||||||
property var definition: model
|
property var definition: model
|
||||||
property var settingDefinitionsModel: definitionsModel
|
property var settingDefinitionsModel: definitionsModel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue