keep inactive plugins

This commit is contained in:
Matthias 2021-11-12 01:54:03 +01:00
parent 4dc1ae4f5f
commit b706ed2312
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 4 additions and 0 deletions

View File

@ -861,5 +861,6 @@ if DEBUG or TESTING:
PLUGINS = []
INTEGRATION_PLUGINS = {}
INTEGRATION_PLUGINS_INACTIVE = {}
INTEGRATION_PLUGIN_SETTING = {}
INTEGRATION_APPS_LOADED = False # Marks if apps were reloaded yet

View File

@ -64,6 +64,9 @@ class PluginConfig(AppConfig):
plugin.is_package = was_packaged
# safe reference
settings.INTEGRATION_PLUGINS[plugin.slug] = plugin
else:
# save for later reference
settings.INTEGRATION_PLUGINS_INACTIVE[plug_key] = plugin_db_setting
# activate integrations
plugins = settings.INTEGRATION_PLUGINS.items()