mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
clients: Fix show empty clients in Desktop section
When a client has a package but no desktop package, an empty client entry appears in the Desktop section. Tests: - For MiniDLNA, in the Desktop section, there is not empty entry for totem anymore. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
f99f3bd382
commit
0e773e7ad0
@ -44,7 +44,8 @@ def _check(client, condition):
|
||||
def _client_has_desktop(client):
|
||||
"""Filter to find out whether an application has desktop clients"""
|
||||
return _check(
|
||||
client, lambda platform: platform.get('os') in enum_values(Desktop_OS))
|
||||
client, lambda platform: platform.get('os') in enum_values(Desktop_OS)
|
||||
and platform.get('type') != 'package')
|
||||
|
||||
|
||||
def _client_has_mobile(client):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user