mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Updates to test plugin.
This commit is contained in:
parent
c679d6b2cf
commit
bed05c7a05
1 changed files with 5 additions and 1 deletions
|
@ -40,8 +40,12 @@ class GtkUI(ui.UI):
|
||||||
# Call UI constructor
|
# Call UI constructor
|
||||||
ui.UI.__init__(self, plugin_api, plugin_name)
|
ui.UI.__init__(self, plugin_api, plugin_name)
|
||||||
log.debug("test plugin initialized..")
|
log.debug("test plugin initialized..")
|
||||||
|
|
||||||
|
def enable(self):
|
||||||
self.plugin.register_hook("on_apply_prefs", self.apply_prefs)
|
self.plugin.register_hook("on_apply_prefs", self.apply_prefs)
|
||||||
|
|
||||||
|
def disable(self):
|
||||||
|
self.plugin.deregister_hook("on_apply_prefs", self.apply_prefs)
|
||||||
|
|
||||||
def apply_prefs(self):
|
def apply_prefs(self):
|
||||||
log.debug("applying prefs in test plugin!!")
|
log.debug("applying prefs in test plugin!!")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue