Use the 'busy' property of the ActionButton

Instead of creating a new BusyIndicator, use the existing one.

Contributes to CURA-6435.
This commit is contained in:
Diego Prado Gesto 2019-04-11 14:17:10 +02:00
parent 96301842f2
commit aabcd71b72

View file

@ -107,17 +107,7 @@ Item
UM.OutputDeviceManager.addManualDevice(hostnameField.text, hostnameField.text);
}
}
BusyIndicator
{
anchors.fill: parent
running:
{
! parent.enabled &&
! addPrinterByIpScreen.hasSentRequest &&
! addPrinterByIpScreen.haveConnection
}
}
busy: !enabled && !addPrinterByIpScreen.hasSentRequest && !addPrinterByIpScreen.haveConnection
Connections
{