mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:55:57 +08:00
Merge pull request #11165 from Ultimaker/8658_Implement_Notifications_for_the_new_marketplace
8658 implement notifications for the new marketplace
This commit is contained in:
commit
7692a6db78
@ -159,6 +159,22 @@ Window
|
|||||||
{
|
{
|
||||||
property string sourcePage: "ManagedPackages.qml"
|
property string sourcePage: "ManagedPackages.qml"
|
||||||
property bool hasSearch: false
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,10 +527,8 @@ UM.Dialog
|
|||||||
visible: activeScriptsList.count > 0
|
visible: activeScriptsList.count > 0
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: parent.top
|
horizontalCenter: parent.right
|
||||||
right: parent.right
|
verticalCenter: parent.top
|
||||||
rightMargin: (-0.5 * width) | 0
|
|
||||||
topMargin: (-0.5 * height) | 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
labelText: activeScriptsList.count
|
labelText: activeScriptsList.count
|
||||||
|
@ -174,10 +174,8 @@ Item
|
|||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: parent.top
|
horizontalCenter: parent.right
|
||||||
right: parent.right
|
verticalCenter: parent.top
|
||||||
rightMargin: (-0.5 * width) | 0
|
|
||||||
topMargin: (-0.5 * height) | 0
|
|
||||||
}
|
}
|
||||||
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0
|
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user