mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Select "Global" tab when switching to a machine that has multiple extruders.
CURA-333
This commit is contained in:
parent
3fcfbb4e48
commit
6fa1fb9d2f
1 changed files with 11 additions and 1 deletions
|
@ -13,7 +13,7 @@ Column
|
||||||
id: base;
|
id: base;
|
||||||
|
|
||||||
property int totalHeightHeader: childrenRect.height
|
property int totalHeightHeader: childrenRect.height
|
||||||
property int currentExtruderIndex;
|
property int currentExtruderIndex: -1;
|
||||||
|
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
|
@ -111,6 +111,16 @@ Column
|
||||||
|
|
||||||
model: Cura.ExtrudersModel { id: extrudersModel; addGlobal: true }
|
model: Cura.ExtrudersModel { id: extrudersModel; addGlobal: true }
|
||||||
|
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.MachineManager
|
||||||
|
onGlobalContainerChanged:
|
||||||
|
{
|
||||||
|
base.currentExtruderIndex = -1;
|
||||||
|
ExtruderManager.setActiveExtruderIndex(index);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
delegate: Button
|
delegate: Button
|
||||||
{
|
{
|
||||||
height: ListView.view.height
|
height: ListView.view.height
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue