Commit b8c405a1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Do not show "Sorry, nothing found" on the search page before searching

Otherwise it looks all weird for no reason.


(cherry picked from commit 9b4321d1)
parent 9b634f2c
......@@ -33,6 +33,7 @@ DiscoverPage {
property string sortProperty: "appsListPageSorting"
property bool compact: page.width < 550 || !applicationWindow().wideScreen
property bool showRating: true
property bool searchPage: false
property bool canNavigate: true
readonly property alias subcategories: appsModel.subcategories
......@@ -131,7 +132,7 @@ DiscoverPage {
anchors.centerIn: parent
width: parent.width - (Kirigami.Units.largeSpacing * 4)
opacity: apps.count == 0 && !appsModel.isBusy ? 1 : 0
opacity: apps.count == 0 && !appsModel.isBusy && (!page.searchPage || appsModel.search.length > 0) ? 1 : 0
Behavior on opacity { NumberAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad } }
icon.name: "edit-none"
......
......@@ -17,6 +17,7 @@ ApplicationsListPage {
searchPage.shown()
}
}
searchPage: true
listHeaderPositioning: ListView.OverlayHeader
listHeader: SearchField {
......
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