mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-23 19:54:02 -04:00
wrap all app category in function
This commit is contained in:
1 parent
cc6e465be1
commit
ab2889c86f
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user