Browse Source

do not block load_wallet with watching_only warning

3.3.3.1
ThomasV 6 years ago
parent
commit
bd5c82404d
  1. 2
      electrum/gui/qt/__init__.py
  2. 1
      electrum/gui/qt/main_window.py

2
electrum/gui/qt/__init__.py

@ -191,13 +191,13 @@ class ElectrumGui(PrintError):
self.network_updated_signal_obj)
self.nd.show()
@profiler
def create_window_for_wallet(self, wallet):
w = ElectrumWindow(self, wallet)
self.windows.append(w)
self.build_tray_menu()
# FIXME: Remove in favour of the load_wallet hook
run_hook('on_new_window', w)
w.warn_if_watching_only()
return w
def count_wizards_in_progress(func):

1
electrum/gui/qt/main_window.py

@ -413,7 +413,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
self.wallet.basename())
extra = [self.wallet.storage.get('wallet_type', '?')]
if self.wallet.is_watching_only():
self.warn_if_watching_only()
extra.append(_('watching only'))
title += ' [%s]'% ', '.join(extra)
self.setWindowTitle(title)

Loading…
Cancel
Save