From c90c87afb951e0ef9099621d11f2a470a17f1972 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 22 Oct 2024 17:10:15 +0000 Subject: [PATCH] qml: QEWallet.sign: prompt for confirmation even if no PIN is set it would probably be better to also tell the user if the tx is going to be broadcast --- electrum/gui/qml/qewallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/qewallet.py b/electrum/gui/qml/qewallet.py index f519d8818..fb9079e30 100644 --- a/electrum/gui/qml/qewallet.py +++ b/electrum/gui/qml/qewallet.py @@ -518,7 +518,7 @@ class QEWallet(AuthMixin, QObject, QtEventListener): self.isLightningChanged.emit() self.dataChanged.emit() - @auth_protect() + @auth_protect(message=_('Sign on-chain transaction?')) # FIXME auth msg cannot be explicit due to "broadcast" param def sign(self, tx, *, broadcast: bool = False, on_success: Callable[[Transaction], None] = None, on_failure: Callable[[], None] = None): sign_hook = run_hook('tc_sign_wrapper', self.wallet, tx, partial(self.on_sign_complete, broadcast, on_success), partial(self.on_sign_failed, on_failure)) if sign_hook: