mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 12:09:13 +08:00
Select "Global" tab when switching to a machine that has multiple extruders.
CURA-333
This commit is contained in:
parent
3fcfbb4e48
commit
6fa1fb9d2f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user