summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-10-01 15:35:43 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-10-01 15:35:43 (GMT)
commit87d3f182e0494f4c5ec34cd979ed8cf045a2e8c4 (patch)
treea98672f344d70b309ca032932bb7144c46ca7645
parent1ccd6a94d57db36610caf8161c75a75cc5f1f9b4 (diff)
Don't show the unselected packages if there's none unselected
-rw-r--r--discover/qml/PresentUpdatesPage.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/discover/qml/PresentUpdatesPage.qml b/discover/qml/PresentUpdatesPage.qml
index a1fb9dd..920c798 100644
--- a/discover/qml/PresentUpdatesPage.qml
+++ b/discover/qml/PresentUpdatesPage.qml
@@ -43,12 +43,16 @@ ScrollView
text: i18n("updates selected")
}
LabelBackground {
+ id: unselectedItem
+ readonly property int unselected: (updateModel.totalUpdatesCount - updateModel.toUpdateCount)
anchors.verticalCenter: parent.verticalCenter
- text: (updateModel.totalUpdatesCount - updateModel.toUpdateCount)
+ text: unselected
+ visible: unselected>0
}
Label {
anchors.verticalCenter: parent.verticalCenter
text: i18n("updates not selected")
+ visible: unselectedItem.visible
}
Item { Layout.fillWidth: true}
Button {