Fix app search.

This commit is contained in:
armored-dragon 2024-08-27 22:40:06 -05:00
parent 574f6b6a70
commit 77bdd9d5cb
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -54,13 +54,13 @@ Rectangle {
id: search_query
onAccepted: {
if (current_page == "app_list"){
searchList(search_query.text, installed_apps);
return;
}
if (current_page == "repos"){
searchList(search_query.text, repo_list);
searchList(search_query.text, app_listings);
return;
}
// if (current_page == "repos"){
// searchList(search_query.text, repo_list);
// return;
// }
}
MouseArea {
anchors.fill: parent
@ -896,7 +896,7 @@ Rectangle {
// Searching
function searchList(text, element){
for (var i = 0; i < element.count; i++) {
var app = element.get(i);