1
0

Remove all self.window references from plugins

This commit is contained in:
Neil Booth
2015-09-04 18:23:18 +09:00
parent 0792792513
commit bbd50ba83c
5 changed files with 52 additions and 69 deletions

View File

@@ -1172,7 +1172,7 @@ class ElectrumWindow(QMainWindow):
def do_send(self):
if run_hook('before_send'):
if run_hook('before_send', window):
return
r = self.read_send_tab()
if not r:
@@ -1228,7 +1228,7 @@ class ElectrumWindow(QMainWindow):
self.send_button.setDisabled(True)
# call hook to see if plugin needs gui interaction
run_hook('sign_tx', tx)
run_hook('sign_tx', parent, tx)
# sign the tx
success = [False] # Array to work around python scoping