Simplify the notifaction icon logic

CURA-8658
This commit is contained in:
Jaime van Kessel 2022-01-03 10:08:17 +01:00
parent fe30a3c19e
commit c92fcc8e03
3 changed files with 6 additions and 12 deletions

View file

@ -164,10 +164,8 @@ Window
{
anchors
{
top: parent.top
right: parent.right
rightMargin: (-0.5 * width) | 0
topMargin: (-0.5 * height) | 0
horizontalCenter: parent.right
verticalCenter: parent.top
}
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0

View file

@ -527,10 +527,8 @@ UM.Dialog
visible: activeScriptsList.count > 0
anchors
{
top: parent.top
right: parent.right
rightMargin: (-0.5 * width) | 0
topMargin: (-0.5 * height) | 0
horizontalCenter: parent.right
verticalCenter: parent.top
}
labelText: activeScriptsList.count

View file

@ -174,10 +174,8 @@ Item
{
anchors
{
top: parent.top
right: parent.right
rightMargin: (-0.5 * width) | 0
topMargin: (-0.5 * height) | 0
horizontalCenter: parent.right
verticalCenter: parent.top
}
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0