mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
add setting for reload
This commit is contained in:
@ -30,9 +30,11 @@ class PluginAppConfig(AppConfig):
|
||||
|
||||
if not registry.is_loading:
|
||||
# this is the first startup
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
# make sure all plugins are installed
|
||||
registry.install_plugin_file()
|
||||
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
||||
# make sure all plugins are installed
|
||||
registry.install_plugin_file()
|
||||
|
||||
# get plugins and init them
|
||||
registry.collect_plugins()
|
||||
|
Reference in New Issue
Block a user