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
@@ -74,7 +74,7 @@ def _get_steps():
|
||||
modules = module_loader.loaded_modules
|
||||
for module_object in modules.values():
|
||||
if getattr(module_object, 'first_boot_steps', None):
|
||||
if module_object.setup_helper.get_state() != 'needs-setup':
|
||||
if not module_object.app.needs_setup():
|
||||
steps.extend(module_object.first_boot_steps)
|
||||
|
||||
_all_first_boot_steps = sorted(steps, key=operator.itemgetter('order'))
|
||||
|
||||
Reference in new issue
Block a user