Commit 1930f344 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Use the new name property to populate the Search placeholder

This way it doesn't get messed up with the results count.
parent d620661a
......@@ -21,7 +21,7 @@ Kirigami.SearchField
property QtObject page
property string currentSearchText
placeholderText: (!enabled || !page || page.hasOwnProperty("isHome") || page.title.length === 0) ? i18n("Search…") : i18n("Search in '%1'…", window.leftPage.title)
placeholderText: (!enabled || !page || page.hasOwnProperty("isHome") || window.leftPage.name.length === 0) ? i18n("Search…") : i18n("Search in '%1'…", window.leftPage.name)
onAccepted: {
searchField.text = searchField.text.replace(/\n/g, ' ');
......
......@@ -12,6 +12,7 @@ DiscoverPage {
clip: true
title: i18n("Settings")
property string search: ""
readonly property string name: title
Kirigami.Action {
id: configureUpdatesAction
......
......@@ -14,6 +14,7 @@ DiscoverPage
property string footerLabel: ""
property int footerProgress: 0
property bool isBusy: false
readonly property string name: title
readonly property var resourcesUpdatesModel: ResourcesUpdatesModel {
id: resourcesUpdatesModel
......
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