From c1c6c01e876762fb5ac4ea4f8d5c6f2055af1bee Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 29 May 2022 19:00:52 +0200 Subject: [PATCH] rebalance dialog: fix button disabling --- electrum/gui/qt/rebalance_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/rebalance_dialog.py b/electrum/gui/qt/rebalance_dialog.py index 527eab48e..408dfcb0c 100644 --- a/electrum/gui/qt/rebalance_dialog.py +++ b/electrum/gui/qt/rebalance_dialog.py @@ -57,7 +57,7 @@ class RebalanceDialog(WindowModalDialog): self.label1.setText(self.chan1.short_id_for_GUI()) self.label2.setText(self.chan2.short_id_for_GUI()) amount_sat = self.amount_e.get_amount() - b = bool(amount_sat) and self.wallet.lnworker.num_sats_can_rebalance(self.chan1, self.chan2) <= amount_sat + b = bool(amount_sat) and self.wallet.lnworker.num_sats_can_rebalance(self.chan1, self.chan2) >= amount_sat self.ok_button.setEnabled(b) def run(self):