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-30 14:24:14 +0300
committercasper <c.lamboo@ultimaker.com>2021-12-30 14:24:14 +0300
commitfe30a3c19e64c2b0f351de6d706557dce540d288 (patch)
tree97ff6b89be5870286273ef4983089ffb53628d46 /plugins/Marketplace/resources
parentcf7772a40a64c0049fe80bd9d936d825715c5aa4 (diff)
Add notification badge for the gear icon in the Market Place
CURA 8658
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/Marketplace.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml
index 017a9e3dde..27826c15b0 100644
--- a/plugins/Marketplace/resources/qml/Marketplace.qml
+++ b/plugins/Marketplace/resources/qml/Marketplace.qml
@@ -159,6 +159,24 @@ Window
{
property string sourcePage: "ManagedPackages.qml"
property bool hasSearch: false
+
+ Cura.NotificationIcon
+ {
+ anchors
+ {
+ top: parent.top
+ right: parent.right
+ rightMargin: (-0.5 * width) | 0
+ topMargin: (-0.5 * height) | 0
+ }
+ visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0
+
+ labelText:
+ {
+ const itemCount = CuraApplication.getPackageManager().packagesWithUpdate.length
+ return itemCount > 9 ? "9+" : itemCount
+ }
+ }
}
}