diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2017-04-26 17:18:14 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2017-04-26 17:18:14 +0300 |
commit | 80bf6988caed91b082a644084929a775fe412eee (patch) | |
tree | cb7f4e985b8b468106f8d933f9071a4652345aec /resources/qml/Toolbar.qml | |
parent | b4f27f0af7c1fd640638e77f773a84b4a9781f47 (diff) |
Remove unnecessary Catalog and SettingPropertyProvider
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r-- | resources/qml/Toolbar.qml | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml index 0f930d532b..5100a0dacb 100644 --- a/resources/qml/Toolbar.qml +++ b/resources/qml/Toolbar.qml @@ -69,10 +69,11 @@ Item } } - Item { height: UM.Theme.getSize("default_margin").height; width: 1; visible: machineExtruderCount.properties.value > 1 } + Item { height: UM.Theme.getSize("default_margin").height; width: 1; visible: extruders.count > 0 } Repeater { + id: extruders model: Cura.ExtrudersModel { id: extrudersModel } ExtruderButton { extruder: model } } @@ -156,15 +157,4 @@ Item visible: toolHint.text != ""; } - - UM.SettingPropertyProvider - { - id: machineExtruderCount - - containerStackId: Cura.MachineManager.activeMachineId - key: "machine_extruder_count" - watchedProperties: [ "value" ] - } - - UM.I18nCatalog { id: catalog; name: "cura" } } |