fix labels plugin init()
This commit is contained in:
parent
56fe629385
commit
43bac658da
|
@ -45,9 +45,7 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
self.target_host = 'labelectrum.herokuapp.com'
|
self.target_host = 'labelectrum.herokuapp.com'
|
||||||
self.wallet = gui.wallet
|
self.wallet = self.gui.wallet
|
||||||
self.gui = gui
|
|
||||||
self.config = gui.config
|
|
||||||
self.labels = self.wallet.labels
|
self.labels = self.wallet.labels
|
||||||
self.transactions = self.wallet.transactions
|
self.transactions = self.wallet.transactions
|
||||||
mpk = self.wallet.master_public_keys["m/0'/"][1]
|
mpk = self.wallet.master_public_keys["m/0'/"][1]
|
||||||
|
@ -145,6 +143,7 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
def enable(self):
|
def enable(self):
|
||||||
if not self.auth_token(): # First run, throw plugin settings in your face
|
if not self.auth_token(): # First run, throw plugin settings in your face
|
||||||
|
self.init()
|
||||||
if self.settings_dialog():
|
if self.settings_dialog():
|
||||||
self.set_enabled(True)
|
self.set_enabled(True)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue