mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +08:00
Trigger extruderTabsCount update when MachineSettings dialog shows
CURA-3755
This commit is contained in:
parent
b1596b7811
commit
a039f9552e
@ -29,7 +29,11 @@ Cura.MachineAction
|
|||||||
repeat: false
|
repeat: false
|
||||||
interval: 1
|
interval: 1
|
||||||
|
|
||||||
onTriggered: base.extruderTabsCount = (machineExtruderCountProvider.properties.value > 1) ? parseInt(machineExtruderCountProvider.properties.value) : 0
|
onTriggered:
|
||||||
|
{
|
||||||
|
var extruderCount = parseInt(machineExtruderCountProvider.properties.value);
|
||||||
|
base.extruderTabsCount = (extruderCount > 1) ? extruderCount : 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
@ -42,6 +46,7 @@ Cura.MachineAction
|
|||||||
onAccepted: manager.onFinishAction()
|
onAccepted: manager.onFinishAction()
|
||||||
onRejected: manager.onFinishAction()
|
onRejected: manager.onFinishAction()
|
||||||
onClosing: manager.onFinishAction()
|
onClosing: manager.onFinishAction()
|
||||||
|
onVisibilityChanged: extruderTabsCountDelay.start()
|
||||||
}
|
}
|
||||||
|
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user