improve message when search yields no results (#507)

Co-authored-by: nephros <nemo@pgxperiiia10>
This commit is contained in:
Peter G 2023-02-05 14:41:04 +00:00 committed by GitHub
parent a9b6bf5817
commit b469135877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,9 @@ Page {
ViewPlaceholder {
y: Theme.paddingLarge
enabled: contactsListView.count === 0
text: qsTr("You don't have any contacts.")
text: (contactsSearchField.text.length > 0)
? qsTr("No contacts found.")
: qsTr("You don't have any contacts.")
}
delegate: Item {