From 1efdf16f92026fcc5a035c1b9bc04cb74d1237e1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 22 Nov 2021 01:30:04 +0100 Subject: [PATCH] only reload one --- InvenTree/plugin/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index b79a1f46e6..6d96018d36 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -430,8 +430,8 @@ class Plugins: apps.apps_ready = apps.models_ready = apps.loading = apps.ready = False apps.clear_cache() self._try_reload(apps.populate, settings.INSTALLED_APPS) - - self._try_reload(apps.set_installed_apps, settings.INSTALLED_APPS) + else: + self._try_reload(apps.set_installed_apps, settings.INSTALLED_APPS) self.is_loading = False def _try_reload(self, cmd, *args, **kwargs):