mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-27 01:58:44 +00:00
only reload one
This commit is contained in:
1 file changed
+2
-2
@@ -430,8 +430,8 @@ class Plugins:
|
|||||||
apps.apps_ready = apps.models_ready = apps.loading = apps.ready = False
|
apps.apps_ready = apps.models_ready = apps.loading = apps.ready = False
|
||||||
apps.clear_cache()
|
apps.clear_cache()
|
||||||
self._try_reload(apps.populate, settings.INSTALLED_APPS)
|
self._try_reload(apps.populate, settings.INSTALLED_APPS)
|
||||||
|
else:
|
||||||
self._try_reload(apps.set_installed_apps, settings.INSTALLED_APPS)
|
self._try_reload(apps.set_installed_apps, settings.INSTALLED_APPS)
|
||||||
self.is_loading = False
|
self.is_loading = False
|
||||||
|
|
||||||
def _try_reload(self, cmd, *args, **kwargs):
|
def _try_reload(self, cmd, *args, **kwargs):
|
||||||
|
|||||||
Reference in new issue
Block a user