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:
authorJelle Spijker <spijker.jelle@gmail.com>2021-12-15 19:51:38 +0300
committerJelle Spijker <spijker.jelle@gmail.com>2021-12-15 19:51:38 +0300
commit23cc7084c48ec346ef32e2a5b35f264e44648d28 (patch)
tree0058f26c58346a73589918caf0be19b65de4c64f /plugins/Marketplace/resources
parent0ffaafc8c0159769f797f38f68241d56ce803288 (diff)
Switch between correct states of the un-/installed buttons
Contributes to CURA-8587
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/PackageCardHeader.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Marketplace/resources/qml/PackageCardHeader.qml b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
index ed55d7b362..41c0bd6a95 100644
--- a/plugins/Marketplace/resources/qml/PackageCardHeader.qml
+++ b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
@@ -198,7 +198,7 @@ Item
visible: showManageButtons && (packageData.canDowngrade || !packageData.isBundled)
enabled: !packageData.busy
busy: packageData.busy
- button_style: !packageData.isInstalled
+ button_style: packageData.isInstalled || packageData.isToBeInstalled
Layout.alignment: Qt.AlignTop
text:
@@ -208,7 +208,7 @@ Item
if (busy) { return catalog.i18nc("@button", "Downgrading..."); }
else { return catalog.i18nc("@button", "Downgrade"); }
}
- if (!packageData.isInstalled)
+ if (!(packageData.isInstalled || packageData.isToBeInstalled))
{
if (busy) { return catalog.i18nc("@button", "Installing..."); }
else { return catalog.i18nc("@button", "Install"); }
@@ -219,7 +219,7 @@ Item
}
}
- onClicked: packageData.isInstalled ? packageData.uninstall(): packageData.install()
+ onClicked: packageData.isInstalled || packageData.isToBeInstalled ? packageData.uninstall(): packageData.install()
}
ManageButton