[WebUI] Add missing deregister event handlers
This commit is contained in:
parent
42e5876ebe
commit
9f187ed027
|
@ -379,6 +379,9 @@ class WebApi(JSONComponent):
|
|||
self.sessionproxy = SessionProxy()
|
||||
|
||||
def disable(self):
|
||||
client.deregister_event_handler("PluginEnabledEvent", self._json.get_remote_methods)
|
||||
client.deregister_event_handler("PluginDisabledEvent", self._json.get_remote_methods)
|
||||
|
||||
if client.is_classicmode():
|
||||
component.get("Web.PluginManager").stop()
|
||||
else:
|
||||
|
|
|
@ -109,6 +109,8 @@ class PluginManager(PluginManagerBase, component.Component):
|
|||
Stop the plugin manager
|
||||
"""
|
||||
self.disable_plugins()
|
||||
client.deregister_event_handler("PluginEnabledEvent", self._on_plugin_enabled_event)
|
||||
client.deregister_event_handler("PluginDisabledEvent", self._on_plugin_disabled_event)
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue