Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcasper <c.lamboo@ultimaker.com>2021-12-14 19:49:25 +0300
committercasper <c.lamboo@ultimaker.com>2021-12-14 19:49:25 +0300
commit5f444fa5b72738f09c8b244f3a43f571b6c0c660 (patch)
treefd98dad0f7a190f1a297afa9723322807564dafc /plugins/Marketplace/resources
parentc338d8f5ce6f50b48fa35dc8028aff44d3317143 (diff)
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
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/PackageCardHeader.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Marketplace/resources/qml/PackageCardHeader.qml b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
index db1661870b..ed55d7b362 100644
--- a/plugins/Marketplace/resources/qml/PackageCardHeader.qml
+++ b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
@@ -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