commit 5df03951e568e900c301e88878902c13da3729b1
parent a36b1d701c4763a275a78df4196662ee1c567ea7
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 3 Sep 2015 08:24:05 +0200
move window initialization hook inside class
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py
@@ -217,7 +217,6 @@ class ElectrumGui:
if not wallet:
return
w = ElectrumWindow(config, self.network, self)
- run_hook('new_window', w)
w.connect_slots(self.timer)
# load new wallet in gui
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -185,6 +185,8 @@ class ElectrumWindow(QMainWindow):
self.fetch_alias()
self.require_fee_update = False
self.tx_notifications = []
+ # hook
+ run_hook('new_window', self)
def is_hidden(self):
return self.isMinimized() or self.isHidden()