From 2947e182cdbbf58daf254629b803209aec2112e3 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 11:50:08 -0800 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- plinth/modules/cockpit/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/cockpit/__init__.py b/plinth/modules/cockpit/__init__.py index 4efd156e8..3d07aac20 100644 --- a/plinth/modules/cockpit/__init__.py +++ b/plinth/modules/cockpit/__init__.py @@ -101,6 +101,9 @@ class CockpitApp(app_module.App): **manifest.backup) self.add(backup_restore) + @staticmethod + def post_init(): + """Perform post initialization operations.""" domain_added.connect(on_domain_added) domain_removed.connect(on_domain_removed)