Dont show installed section if nothing is there

This commit is contained in:
Syer10
2021-08-29 12:50:53 -04:00
parent 34ba882cb3
commit f8b5cccdad

View File

@@ -133,7 +133,7 @@ class ExtensionsMenuViewModel @Inject constructor(
return mapOf(
resources.getStringA("installed") to (obsolete + updates + installed),
) + available.groupBy { it.lang }.mapKeys {
).filterNot { it.value.isEmpty() } + available.groupBy { it.lang }.mapKeys {
if (it.key == "all") {
resources.getStringA("all")
} else {