diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-01-03 13:32:06 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-01-03 13:32:06 +0300 |
commit | 7deeb26e13f794bec99be51cf492f9c8a42398dd (patch) | |
tree | e37d974e9cf1e630b6938db727cb98fb37065001 /plugins/Marketplace/resources | |
parent | 60e6d7bcaedc45d2962954cfbd658f104ad56790 (diff) | |
parent | 7692a6db780816bc623caec3ecbded157774a77f (diff) |
Merge branch 'marketplace_redesign' of github.com:Ultimaker/Cura into CURA-8588_replace_toolbox_with_marketplace
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r-- | plugins/Marketplace/resources/qml/Marketplace.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml index 55457b8589..fc6d3cd755 100644 --- a/plugins/Marketplace/resources/qml/Marketplace.qml +++ b/plugins/Marketplace/resources/qml/Marketplace.qml @@ -158,6 +158,22 @@ Window { property string sourcePage: "ManagedPackages.qml" property bool hasSearch: false + + Cura.NotificationIcon + { + anchors + { + horizontalCenter: parent.right + verticalCenter: parent.top + } + visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0 + + labelText: + { + const itemCount = CuraApplication.getPackageManager().packagesWithUpdate.length + return itemCount > 9 ? "9+" : itemCount + } + } } } |