diff options
author | casper <c.lamboo@ultimaker.com> | 2021-12-30 14:24:14 +0300 |
---|---|---|
committer | casper <c.lamboo@ultimaker.com> | 2021-12-30 14:24:14 +0300 |
commit | fe30a3c19e64c2b0f351de6d706557dce540d288 (patch) | |
tree | 97ff6b89be5870286273ef4983089ffb53628d46 /plugins/Marketplace/resources | |
parent | cf7772a40a64c0049fe80bd9d936d825715c5aa4 (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.qml | 18 |
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 + } + } } } |