From ce3ac604f2352cb233e650815670b89fa29b4c7c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 10 Jul 2020 14:05:39 +0200 Subject: [PATCH] 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 --- resources/qml/Settings/SettingView.qml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/resources/qml/Settings/SettingView.qml b/resources/qml/Settings/SettingView.qml index 4c31988eb0..610e065554 100644 --- a/resources/qml/Settings/SettingView.qml +++ b/resources/qml/Settings/SettingView.qml @@ -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