mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
wrap all app category in function
This commit is contained in:
@@ -46,7 +46,7 @@ Item {
|
|||||||
var apps = []
|
var apps = []
|
||||||
if (searchQuery.length === 0) {
|
if (searchQuery.length === 0) {
|
||||||
if (selectedCategory === "All") {
|
if (selectedCategory === "All") {
|
||||||
apps = AppSearchService.applications || []
|
apps = AppSearchService.getAppsInCategory("All") // HACK: Use function call instead of property
|
||||||
} else {
|
} else {
|
||||||
var categoryApps = AppSearchService.getAppsInCategory(selectedCategory)
|
var categoryApps = AppSearchService.getAppsInCategory(selectedCategory)
|
||||||
apps = categoryApps.slice(0, maxResults)
|
apps = categoryApps.slice(0, maxResults)
|
||||||
|
|||||||
Reference in New Issue
Block a user