mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
and another flag moved
This commit is contained in:
parent
308348f051
commit
5f180b61e9
@ -884,7 +884,6 @@ if DEBUG or TESTING:
|
|||||||
PLUGINS = []
|
PLUGINS = []
|
||||||
INTEGRATION_PLUGIN_GLOBALSETTING = {}
|
INTEGRATION_PLUGIN_GLOBALSETTING = {}
|
||||||
|
|
||||||
INTEGRATION_APPS_LOADING = True # Marks if apps were reloaded yet
|
|
||||||
INTEGRATION_APPS_PATHS = [] # Holds all added plugin_paths
|
INTEGRATION_APPS_PATHS = [] # Holds all added plugin_paths
|
||||||
INTEGRATION_ERRORS = {} # Holds discovering errors
|
INTEGRATION_ERRORS = {} # Holds discovering errors
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ class Plugins:
|
|||||||
|
|
||||||
# flags
|
# flags
|
||||||
self.is_loading = False
|
self.is_loading = False
|
||||||
|
self.apps_loading = True # Marks if apps were reloaded yet
|
||||||
|
|
||||||
# region public plugin functions
|
# region public plugin functions
|
||||||
def load_plugins(self):
|
def load_plugins(self):
|
||||||
@ -269,9 +270,9 @@ class Plugins:
|
|||||||
|
|
||||||
if apps_changed or force_reload:
|
if apps_changed or force_reload:
|
||||||
# if apps were changed or force loading base apps -> reload
|
# if apps were changed or force loading base apps -> reload
|
||||||
if settings.INTEGRATION_APPS_LOADING or force_reload:
|
if self.apps_loading or force_reload:
|
||||||
# first startup or force loading of base apps -> registry is prob false
|
# first startup or force loading of base apps -> registry is prob false
|
||||||
settings.INTEGRATION_APPS_LOADING = False
|
self.apps_loading = False
|
||||||
self._reload_apps(force_reload=True)
|
self._reload_apps(force_reload=True)
|
||||||
self._reload_apps()
|
self._reload_apps()
|
||||||
# rediscover models/ admin sites
|
# rediscover models/ admin sites
|
||||||
|
Loading…
x
Reference in New Issue
Block a user