mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
cockpit: Split app initialization
Tests: - When a domain is added it is added to the configuration file. - When a domain is removed it is removed from the configuration file. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
143bff3984
commit
2947e182cd
@ -101,6 +101,9 @@ class CockpitApp(app_module.App):
|
|||||||
**manifest.backup)
|
**manifest.backup)
|
||||||
self.add(backup_restore)
|
self.add(backup_restore)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def post_init():
|
||||||
|
"""Perform post initialization operations."""
|
||||||
domain_added.connect(on_domain_added)
|
domain_added.connect(on_domain_added)
|
||||||
domain_removed.connect(on_domain_removed)
|
domain_removed.connect(on_domain_removed)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user