Commit e2ba7f81 authored by Jonas Knarbakk's avatar Jonas Knarbakk Committed by Aleix Pol Gonzalez
Browse files

InstalledPage: sort descending unless sorting by name

When browsing the Installed page it makes more sense to
list the biggest packages first when sorting by size, or
the highest rated packages when sorting by raiting.
parent 8f5fdb93
......@@ -8,10 +8,10 @@ import org.kde.kirigami 2.14 as Kirigami
ApplicationsListPage {
id: page
stateFilter: AbstractResource.Installed
sortOrder: Qt.AscendingOrder
allBackends: true
sortProperty: "installedPageSorting"
sortRole: DiscoverSettings.installedPageSorting
sortOrder: (sortRole == ResourcesProxyModel.NameRole) ? Qt.AscendingOrder : Qt.DescendingOrder
name: i18n("Installed")
compact: true
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