Searches in the name field has been extended to the description as well (close #44)

This commit is contained in:
Marco Dalla Tiezza
2024-06-04 19:51:21 +02:00
parent f61527ed70
commit 10607c88ea
4 changed files with 185 additions and 182 deletions

View File

@@ -55,8 +55,9 @@ Window {
listModel.clear()
for (var i = 0; i < loadedList.length; i++) {
var name = loadedList[i].name.toLowerCase()
var description = loadedList[i].description.toLowerCase()
var search = textFieldSearch.text.toLowerCase()
if (name.includes(search)) {
if (name.includes(search) || description.includes(search)) {
listModel.append(loadedList[i])
}
}