Simplify enabled busy state

both the `installManageButton` and `updateManageButton` are busy when
`packageData.busy`, so the
`!(installManageButton.busy || updateManageButton.busy)` check didn't
make much sense.

CURA-8587
This commit is contained in:
casper 2021-12-14 17:49:25 +01:00
parent c338d8f5ce
commit 5f444fa5b7

View file

@ -182,7 +182,7 @@ Item
{
id: enableManageButton
visible: showManageButtons && packageData.isInstalled && packageData.packageType != "material"
enabled: !(installManageButton.busy || updateManageButton.busy)
enabled: !packageData.busy
button_style: !packageData.isActive
Layout.alignment: Qt.AlignTop
@ -196,7 +196,7 @@ Item
{
id: installManageButton
visible: showManageButtons && (packageData.canDowngrade || !packageData.isBundled)
enabled: !updateManageButton.busy
enabled: !packageData.busy
busy: packageData.busy
button_style: !packageData.isInstalled
Layout.alignment: Qt.AlignTop
@ -226,8 +226,7 @@ Item
{
id: updateManageButton
visible: showManageButtons && packageData.canUpdate
enabled: !installManageButton.busy
enabled: !packageData.busy
busy: packageData.busy
Layout.alignment: Qt.AlignTop