Commit 9b4321d1 authored by Aleix Pol Gonzalez's avatar 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.
parent b0c52067
......@@ -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