1
0

fix trezor initialiation hook (pass window in load_wallet)

This commit is contained in:
ThomasV
2015-06-09 09:58:40 +02:00
parent 70037b89a9
commit f70a996619
10 changed files with 18 additions and 24 deletions

View File

@@ -73,9 +73,6 @@ class ElectrumGui:
if app is None:
self.app = QApplication(sys.argv)
self.app.installEventFilter(self.efilter)
# let plugins know that we are using the qt gui
always_hook('init_qt_app', self.app)
def build_tray_menu(self):
m = QMenu()
@@ -105,8 +102,6 @@ class ElectrumGui:
def close(self):
self.current_window.close()
def go_full(self):
self.config.set_key('lite_mode', False, True)
self.lite_window.hide()

View File

@@ -236,8 +236,7 @@ class ElectrumWindow(QMainWindow):
self.clear_receive_tab()
self.update_receive_tab()
self.show()
run_hook('init_qt', self.gui_object)
run_hook('load_wallet', wallet)
run_hook('load_wallet', wallet, self)
def import_old_contacts(self):
# backward compatibility: import contacts
@@ -2622,7 +2621,7 @@ class ElectrumWindow(QMainWindow):
plugins[name] = p = module.Plugin(self.config, name)
p.enable()
p.wallet = self.wallet
p.load_wallet(self.wallet)
p.load_wallet(self.wallet, self)
p.init_qt(self.gui_object)
r = p.is_enabled()
cb.setChecked(r)