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:
authorJaime van Kessel <nallath@gmail.com>2021-12-13 16:18:50 +0300
committerJaime van Kessel <nallath@gmail.com>2021-12-13 16:18:50 +0300
commitd422e0d4eeb014350f4c9ba029f064ed3c21bf72 (patch)
tree906cee9c93e35bd6ee3db3226f628b97962a918c /plugins/Marketplace/resources
parent62f99a28b31e1d0fec01151f3413abf36a3b9e09 (diff)
Simplify onClicked for install button
CURA-8587
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/PackageCardHeader.qml7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Marketplace/resources/qml/PackageCardHeader.qml b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
index 96335ecc9d..fa45a4d0bb 100644
--- a/plugins/Marketplace/resources/qml/PackageCardHeader.qml
+++ b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
@@ -232,11 +232,8 @@ Item
}
}
- onClicked:
- {
- if (packageData.isInstalled){ packageData.uninstall() }
- else { packageData.install()}
- }
+ onClicked: packageData.isInstalled ? packageData.uninstall(): packageData.install()
+
}
ManageButton