From 1d17ba2134cb12cc77be9156d752b7af0348a245 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:02:41 -0800 Subject: [PATCH] names: Split app initialization Tests: - When domain name is changed in config module. The updated names shows up in the names module. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/names/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/names/__init__.py b/plinth/modules/names/__init__.py index d17005760..f6aa8e2ae 100644 --- a/plinth/modules/names/__init__.py +++ b/plinth/modules/names/__init__.py @@ -56,6 +56,9 @@ class NamesApp(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)