Select "Global" tab when switching to a machine that has multiple extruders.

CURA-333
This commit is contained in:
fieldOfView 2016-06-22 09:23:22 +02:00
parent 3fcfbb4e48
commit 6fa1fb9d2f

View File

@ -13,7 +13,7 @@ Column
id: base;
property int totalHeightHeader: childrenRect.height
property int currentExtruderIndex;
property int currentExtruderIndex: -1;
spacing: UM.Theme.getSize("default_margin").height
@ -111,6 +111,16 @@ Column
model: Cura.ExtrudersModel { id: extrudersModel; addGlobal: true }
Connections
{
target: Cura.MachineManager
onGlobalContainerChanged:
{
base.currentExtruderIndex = -1;
ExtruderManager.setActiveExtruderIndex(index);
}
}
delegate: Button
{
height: ListView.view.height