From 5b4f70d6f9d600112360c49066f9b7d2f0f3ccda Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:08:35 -0800 Subject: [PATCH] upgrades: Split app initialziation Tests: - Upon startup, upgrade check runs every 3 minutes. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/upgrades/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/upgrades/__init__.py b/plinth/modules/upgrades/__init__.py index 5704d75a4..1ffffd674 100644 --- a/plinth/modules/upgrades/__init__.py +++ b/plinth/modules/upgrades/__init__.py @@ -92,6 +92,8 @@ class UpgradesApp(app_module.App): **manifest.backup) self.add(backup_restore) + def post_init(self): + """Perform post initialization operations.""" self._show_new_release_notification() # Check every day (every 3 minutes in debug mode):