mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Only associate to a Jedi if the MachineAction is currently shown
CURA-2041
This commit is contained in:
parent
d3333540de
commit
70a93ac0a2
1 changed files with 8 additions and 1 deletions
|
@ -17,7 +17,14 @@ Cura.MachineAction
|
||||||
{
|
{
|
||||||
target: dialog ? dialog : null
|
target: dialog ? dialog : null
|
||||||
ignoreUnknownSignals: true
|
ignoreUnknownSignals: true
|
||||||
onNextClicked: connectToPrinter()
|
onNextClicked:
|
||||||
|
{
|
||||||
|
// Connect to the printer if the MachineAction is currently shown
|
||||||
|
if(base.parent == dialog)
|
||||||
|
{
|
||||||
|
connectToPrinter();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function connectToPrinter()
|
function connectToPrinter()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue