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 767ccad970
commit a428bf49f4

View File

@ -106,17 +106,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
{