move window initialization hook inside class
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user