From 3c44fa9a07bce9e27cb80cad251bb2416841bd24 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:11:43 -0800 Subject: [PATCH] gitweb: Split app initialization Tests: - When a public repo is added, upon startup, the front page shortcut is shown. - When all public repos are removed, upon startup, the front page shortcut is not shown. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/gitweb/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/gitweb/__init__.py b/plinth/modules/gitweb/__init__.py index 5a7c44481..2fdc29ee7 100644 --- a/plinth/modules/gitweb/__init__.py +++ b/plinth/modules/gitweb/__init__.py @@ -97,6 +97,8 @@ class GitwebApp(app_module.App): **manifest.backup) self.add(backup_restore) + def post_init(self): + """Perform post initialization operations.""" setup_helper = globals()['setup_helper'] if setup_helper.get_state() != 'needs-setup': self.update_service_access()