mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Trigger extruderTabsCount update when MachineSettings dialog shows
CURA-3755
This commit is contained in:
parent
b1596b7811
commit
a039f9552e
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,11 @@ Cura.MachineAction
|
|||
repeat: false
|
||||
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
|
||||
|
@ -42,6 +46,7 @@ Cura.MachineAction
|
|||
onAccepted: manager.onFinishAction()
|
||||
onRejected: manager.onFinishAction()
|
||||
onClosing: manager.onFinishAction()
|
||||
onVisibilityChanged: extruderTabsCountDelay.start()
|
||||
}
|
||||
|
||||
anchors.fill: parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue