1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

wrap all app category in function

This commit is contained in:
bbedward
2025-08-13 18:36:24 -04:00
parent cc6e465be1
commit ab2889c86f

View File

@@ -46,7 +46,7 @@ Item {
var apps = []
if (searchQuery.length === 0) {
if (selectedCategory === "All") {
apps = AppSearchService.applications || []
apps = AppSearchService.getAppsInCategory("All") // HACK: Use function call instead of property
} else {
var categoryApps = AppSearchService.getAppsInCategory(selectedCategory)
apps = categoryApps.slice(0, maxResults)