more struc

This commit is contained in:
Matthias 2021-11-14 22:02:14 +01:00
parent c059583b08
commit d586d6225c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -29,6 +29,7 @@ class PluginAppConfig(AppConfig):
self.collect_plugins()
self.load_plugins()
# region general public plugin functions
def load_plugins(self):
logger.info('Start loading plugins')
try:
@ -57,7 +58,9 @@ class PluginAppConfig(AppConfig):
self.unload_plugins()
self.load_plugins()
logger.info('Finished reloading plugins')
# endregion
# region general mechanisms
def collect_plugins(self):
"""collect integration plugins from all possible ways of loading"""
# Collect plugins from paths
@ -133,6 +136,7 @@ class PluginAppConfig(AppConfig):
def deactivate_plugins(self):
self.deactivate_integration_app()
self.deactivate_integration_globalsettings()
# endregion
# region integration_globalsettings
def activate_integration_globalsettings(self, plugins):