confirm_tx dialog: provide feedback to the user when tx is not ready
This commit is contained in:
@@ -532,7 +532,7 @@ class TxEditor(WindowModalDialog):
|
|||||||
if self.not_enough_funds:
|
if self.not_enough_funds:
|
||||||
self.io_widget.update(None)
|
self.io_widget.update(None)
|
||||||
self.set_feerounding_visibility(False)
|
self.set_feerounding_visibility(False)
|
||||||
self.messages = []
|
self.messages = [_('Preparing transaction...')]
|
||||||
else:
|
else:
|
||||||
self.messages = self.get_messages()
|
self.messages = self.get_messages()
|
||||||
self.update_fee_fields()
|
self.update_fee_fields()
|
||||||
@@ -619,7 +619,7 @@ class ConfirmTxDialog(TxEditor):
|
|||||||
title=_("New Transaction"), # todo: adapt title for channel funding tx, swaps
|
title=_("New Transaction"), # todo: adapt title for channel funding tx, swaps
|
||||||
allow_preview=allow_preview)
|
allow_preview=allow_preview)
|
||||||
|
|
||||||
self.update()
|
self.trigger_update()
|
||||||
|
|
||||||
def _update_amount_label(self):
|
def _update_amount_label(self):
|
||||||
tx = self.tx
|
tx = self.tx
|
||||||
|
|||||||
Reference in New Issue
Block a user