diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-01 15:35:43 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-01 15:35:43 (GMT) |
| commit | 87d3f182e0494f4c5ec34cd979ed8cf045a2e8c4 (patch) | |
| tree | a98672f344d70b309ca032932bb7144c46ca7645 | |
| parent | 1ccd6a94d57db36610caf8161c75a75cc5f1f9b4 (diff) | |
Don't show the unselected packages if there's none unselected
| -rw-r--r-- | discover/qml/PresentUpdatesPage.qml | 6 |
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 { |
