electrum

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

commit ed29a45d50cbb234b384f4c37bb5751a54a10dcc
parent 20d8da7e24e8377f6c752b994e7bfdb02b6fa49c
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 24 Feb 2020 12:29:56 +0100

Qt: disable preview button in open_channel

Diffstat:
Melectrum/gui/qt/main_window.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py @@ -1659,9 +1659,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): def open_channel(self, connect_str, funding_sat, push_amt): # use ConfirmTxDialog # we need to know the fee before we broadcast, because the txid is required - # however, the user must not be allowed to broadcast early make_tx = self.mktx_for_open_channel(funding_sat) d = ConfirmTxDialog(window=self, make_tx=make_tx, output_value=funding_sat, is_sweep=False) + # disable preview button because the user must not broadcast tx before establishment_flow + d.preview_button.setEnabled(False) cancelled, is_send, password, funding_tx = d.run() if not is_send: return