Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2017-07-12 15:47:38 +0300
committerfieldOfView <aldo@fieldofview.com>2017-07-12 15:47:38 +0300
commit82d3a98f952cf56974b86ed680566a3ad199399f (patch)
tree57bdf1950ca5dc604467f5daeb549cf12b1b99f7 /resources/qml/Toolbar.qml
parent391533e939c9e6e59eaabfd068893983f7a1e712 (diff)
Hide the extruder button for Custom FDM Printers with 1 extruder
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r--resources/qml/Toolbar.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml
index 1044bfbfcf..0903c0555b 100644
--- a/resources/qml/Toolbar.qml
+++ b/resources/qml/Toolbar.qml
@@ -74,7 +74,8 @@ Item
Repeater
{
id: extruders
- model: Cura.ExtrudersModel { id: extrudersModel }
+ property var _model: Cura.ExtrudersModel { id: extrudersModel }
+ model: _model.items.length > 1 ? _model : 0
ExtruderButton { extruder: model }
}
}