Revert "Show extruder tabs only in custom mode. CURA-2763"

This reverts commit f916c9b4cf.
This commit is contained in:
Jack Ha 2016-12-07 14:32:40 +01:00
parent f916c9b4cf
commit 67f1afb9ce
2 changed files with 3 additions and 4 deletions

View file

@ -149,7 +149,6 @@ Rectangle
SidebarHeader {
id: header
width: parent.width
property bool showExtruderTabs: modesListModel.get(base.currentModeIndex).showExtruderTabs
anchors.top: sidebarHeaderBar.bottom
anchors.topMargin: UM.Theme.getSize("default_margin").height
@ -409,8 +408,8 @@ Rectangle
Component.onCompleted:
{
modesListModel.append({ text: catalog.i18nc("@title:tab", "Recommended"), item: sidebarSimple, showFilterButton: false, showExtruderTabs: false })
modesListModel.append({ text: catalog.i18nc("@title:tab", "Custom"), item: sidebarAdvanced, showFilterButton: true, showExtruderTabs: true })
modesListModel.append({ text: catalog.i18nc("@title:tab", "Recommended"), item: sidebarSimple, showFilterButton: false })
modesListModel.append({ text: catalog.i18nc("@title:tab", "Custom"), item: sidebarAdvanced, showFilterButton: true })
sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "immediate": true });
var index = parseInt(UM.Preferences.getValue("cura/active_mode"))

View file

@ -65,7 +65,7 @@ Column
{
id: extruderSelectionRow
height: UM.Theme.getSize("sidebar_tabs").height
visible: showExtruderTabs && machineExtruderCount.properties.value > 1 && !sidebar.monitoringPrint
visible: machineExtruderCount.properties.value > 1 && !sidebar.monitoringPrint
anchors
{