fix plugins on restart
This commit is contained in:
parent
85f9b8bf41
commit
de8b55c9ed
|
@ -122,7 +122,10 @@ class PluginManager:
|
||||||
|
|
||||||
def shutdown_all_plugins(self):
|
def shutdown_all_plugins(self):
|
||||||
for name in self.enabled_plugins.keys():
|
for name in self.enabled_plugins.keys():
|
||||||
self.disable_plugin(name)
|
plugin = self.enabled_plugins[name]
|
||||||
|
if 'unload' in dir(plugin):
|
||||||
|
plugin.unload()
|
||||||
|
del self.enabled_plugins[name]
|
||||||
self.enabled_plugins.clear()
|
self.enabled_plugins.clear()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue