Reset after_load actions before plugin reload

This commit is contained in:
shortcutme 2018-06-25 14:30:04 +02:00
parent 05fb60f809
commit f671e699e6
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -59,6 +59,7 @@ class PluginManager:
# Reload all plugins
def reloadPlugins(self):
self.after_load = []
self.plugins_before = self.plugins
self.plugins = defaultdict(list) # Reset registered plugins
for module_name, module in sys.modules.items():