From c3991091def722d18e05675d14a6e7edd7f57e48 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 7 Aug 2015 20:06:31 +0200 Subject: [PATCH] move init_qt hook --- lib/plugins.py | 2 -- plugins/audio_modem.py | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/plugins.py b/lib/plugins.py index ed7da400c..4af4566f3 100644 --- a/lib/plugins.py +++ b/lib/plugins.py @@ -168,8 +168,6 @@ class BasePlugin: self.set_enabled(False) return True - def init_qt(self, gui): pass - @hook def load_wallet(self, wallet, window): pass diff --git a/plugins/audio_modem.py b/plugins/audio_modem.py index ed1d919c4..e0a0edf19 100644 --- a/plugins/audio_modem.py +++ b/plugins/audio_modem.py @@ -35,6 +35,10 @@ class Plugin(BasePlugin): 'Linux': 'libportaudio.so' }[platform.system()] + @hook + def init_qt(self, gui): + pass + def is_available(self): return amodem is not None