mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Qt: disable preview button in open_channel
This commit is contained in:
parent
20d8da7e24
commit
ed29a45d50
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue