do not block load_wallet with watching_only warning
This commit is contained in:
@@ -191,13 +191,13 @@ class ElectrumGui(PrintError):
|
|||||||
self.network_updated_signal_obj)
|
self.network_updated_signal_obj)
|
||||||
self.nd.show()
|
self.nd.show()
|
||||||
|
|
||||||
@profiler
|
|
||||||
def create_window_for_wallet(self, wallet):
|
def create_window_for_wallet(self, wallet):
|
||||||
w = ElectrumWindow(self, wallet)
|
w = ElectrumWindow(self, wallet)
|
||||||
self.windows.append(w)
|
self.windows.append(w)
|
||||||
self.build_tray_menu()
|
self.build_tray_menu()
|
||||||
# FIXME: Remove in favour of the load_wallet hook
|
# FIXME: Remove in favour of the load_wallet hook
|
||||||
run_hook('on_new_window', w)
|
run_hook('on_new_window', w)
|
||||||
|
w.warn_if_watching_only()
|
||||||
return w
|
return w
|
||||||
|
|
||||||
def count_wizards_in_progress(func):
|
def count_wizards_in_progress(func):
|
||||||
|
|||||||
@@ -413,7 +413,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
|||||||
self.wallet.basename())
|
self.wallet.basename())
|
||||||
extra = [self.wallet.storage.get('wallet_type', '?')]
|
extra = [self.wallet.storage.get('wallet_type', '?')]
|
||||||
if self.wallet.is_watching_only():
|
if self.wallet.is_watching_only():
|
||||||
self.warn_if_watching_only()
|
|
||||||
extra.append(_('watching only'))
|
extra.append(_('watching only'))
|
||||||
title += ' [%s]'% ', '.join(extra)
|
title += ' [%s]'% ', '.join(extra)
|
||||||
self.setWindowTitle(title)
|
self.setWindowTitle(title)
|
||||||
|
|||||||
Reference in New Issue
Block a user