mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-18 00:19:49 +00:00
move window initialization hook inside class
This commit is contained in:
parent
a36b1d701c
commit
5df03951e5
2 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue