App is installed when it appears in packages, not in apps

This commit is contained in:
Disassembler 2019-02-26 21:02:49 +01:00
parent 27cb356d92
commit b5f8f3cf84
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -182,7 +182,7 @@ class WSGIApp:
actionable_apps = sorted(set([k for k, v in online_packages.items() if 'title' in v] + list(self.conf['apps'].keys())))
app_data = {}
for app in actionable_apps:
installed = app in self.conf['apps']
installed = app in self.conf['packages']
title = self.conf['packages'][app]['title'] if installed else online_packages[app]['title']
visible = self.conf['apps'][app]['visible'] if installed else False
autostarted = self.appmgr.is_service_autostarted(app) if installed else False