Commit a7a674fd authored by Jonas Knarbakk's avatar Jonas Knarbakk Committed by Nate Graham
Browse files

add showSize property set in InstalledPage.qml

parent 79cb3c2e
Pipeline #150350 passed with stage
in 1 minute and 56 seconds
......@@ -18,6 +18,7 @@ Kirigami.AbstractCard
property alias application: installButton.application
property bool compact: false
property bool showRating: true
property bool showSize: false
readonly property bool appIsFromNonDefaultBackend: ResourcesModel.currentApplicationBackend !== application.backend && application.backend.hasApplications
showClickFeedback: true
......@@ -164,11 +165,10 @@ Kirigami.AbstractCard
Label {
id: size
Layout.fillWidth: true
visible: page.title.includes("Installed") && !delegateArea.compact
visible: showSize && !delegateArea.compact
text: visible ? delegateArea.application.sizeDescription : ""
horizontalAlignment: Text.AlignRight
opacity: 0.6;
// Without this check we end up in a binding loop when transitioning from desktop to mobile view in the applications page
text: page.title.includes("Installed") && !delegateArea.compact ? delegateArea.application.sizeDescription : ""
font: Kirigami.Theme.smallFont
elide: Text.ElideRight
maximumLineCount: 1
......
......@@ -34,6 +34,7 @@ DiscoverPage {
property string sortProperty: "appsListPageSorting"
property bool compact: page.width < 550 || !applicationWindow().wideScreen
property bool showRating: true
property bool showSize: false
property bool searchPage: false
property bool canNavigate: true
......@@ -152,6 +153,7 @@ DiscoverPage {
application: model.application
compact: !applicationWindow().wideScreen
showRating: page.showRating
showSize: page.showSize
}
Item {
......
......@@ -15,6 +15,7 @@ ApplicationsListPage {
name: i18n("Installed")
compact: true
showRating: false
showSize: true
canNavigate: false
listHeader: null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment