Browse Source

qt tx dialog: use WaitingDialog for network requests in __init__

patch-4
SomberNight 4 years ago
parent
commit
85f76523b6
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/transaction_dialog.py

6
electrum/gui/qt/transaction_dialog.py

@ -215,7 +215,11 @@ class BaseTxDialog(QDialog, MessageBoxMixin):
# As a result, e.g. we might learn an imported address tx is segwit,
# or that a beyond-gap-limit address is is_mine.
# note: this might fetch prev txs over the network.
tx.add_info_from_wallet(self.wallet)
BlockingWaitingDialog(
self,
_("Adding info to tx, from wallet and network..."),
lambda: tx.add_info_from_wallet(self.wallet),
)
def do_broadcast(self):
self.main_window.push_top_level_window(self)

Loading…
Cancel
Save