From 39bc672da28df6a82ecfcaaa1a52bafffc16b402 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 6 Feb 2024 10:37:35 +0100 Subject: [PATCH] followup prev --- electrum/gui/qt/send_tab.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/electrum/gui/qt/send_tab.py b/electrum/gui/qt/send_tab.py index 55be39b48..da06885d9 100644 --- a/electrum/gui/qt/send_tab.py +++ b/electrum/gui/qt/send_tab.py @@ -468,10 +468,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger): if not lock_max and self.amount_e.text() == '!': self.spend_max() - pi_unusable = pi.is_error() \ - or (not self.wallet.has_lightning() and not pi.is_onchain()) \ - or pi.need_resolve() - self.logger.debug(f'usable? {not pi_unusable}') + pi_unusable = pi.is_error() or (not self.wallet.has_lightning() and not pi.is_onchain()) is_spk_script = pi.type == PaymentIdentifierType.SPK and not pi.spk_is_address amount_valid = is_spk_script or bool(self.amount_e.get_amount())