mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
*: Use the App's state management API
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
78b08758a3
commit
b609abe7e5
23 files changed
+83
-96
No files matched your search
@@ -147,8 +147,7 @@ def apps_post_init():
|
||||
|
||||
try:
|
||||
module.app.post_init()
|
||||
if module.setup_helper.get_state(
|
||||
) != 'needs-setup' and module.app.is_enabled():
|
||||
if not module.app.needs_setup() and module.app.is_enabled():
|
||||
module.app.set_enabled(True)
|
||||
except Exception as exception:
|
||||
logger.exception('Exception while running post init for %s: %s',
|
||||
|
||||
Reference in new issue
Block a user