electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 85f76523b6b29d49099648725c5fccc337ad28a5
parent 422f7ad110b5053a794f48ec7df97a034c801248
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed,  6 Jan 2021 02:27:17 +0100

qt tx dialog: use WaitingDialog for network requests in __init__

Diffstat:
Melectrum/gui/qt/transaction_dialog.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/transaction_dialog.py b/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)