move window initialization hook inside class
This commit is contained in:
parent
a36b1d701c
commit
5df03951e5
@ -217,7 +217,6 @@ class ElectrumGui:
|
|||||||
if not wallet:
|
if not wallet:
|
||||||
return
|
return
|
||||||
w = ElectrumWindow(config, self.network, self)
|
w = ElectrumWindow(config, self.network, self)
|
||||||
run_hook('new_window', w)
|
|
||||||
w.connect_slots(self.timer)
|
w.connect_slots(self.timer)
|
||||||
|
|
||||||
# load new wallet in gui
|
# load new wallet in gui
|
||||||
|
|||||||
@ -185,6 +185,8 @@ class ElectrumWindow(QMainWindow):
|
|||||||
self.fetch_alias()
|
self.fetch_alias()
|
||||||
self.require_fee_update = False
|
self.require_fee_update = False
|
||||||
self.tx_notifications = []
|
self.tx_notifications = []
|
||||||
|
# hook
|
||||||
|
run_hook('new_window', self)
|
||||||
|
|
||||||
def is_hidden(self):
|
def is_hidden(self):
|
||||||
return self.isMinimized() or self.isHidden()
|
return self.isMinimized() or self.isHidden()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user