1
0

small fixes, imports, whitespace

This commit is contained in:
Sander van Grieken
2025-03-25 16:41:14 +01:00
parent 67171af4a5
commit 9be6d6e732
5 changed files with 17 additions and 11 deletions

View File

@@ -245,7 +245,7 @@ ElDialog {
FlatButton {
Layout.fillWidth: true
text: qsTr('Open Channel')
text: qsTr('Open Channel...')
icon.source: '../../icons/confirmed.png'
enabled: channelopener.valid
onClicked: channelopener.openChannel()

View File

@@ -19,6 +19,7 @@ from electrum.lnutil import MIN_FUNDING_SAT
from electrum.plugin import run_hook
from electrum.wallet import Multisig_Wallet
from electrum.crypto import pw_decode_with_version_and_mac
from electrum.fee_policy import FeePolicy, FixedFeePolicy
from .auth import AuthMixin, auth_protect
from .qeaddresslistmodel import QEAddressCoinListModel
@@ -27,8 +28,6 @@ from .qeinvoicelistmodel import QEInvoiceListModel, QERequestListModel
from .qetransactionlistmodel import QETransactionListModel
from .qetypes import QEAmount
from .util import QtEventListener, qt_event_listener
from ...lntransport import extract_nodeid
from ...fee_policy import FeePolicy
if TYPE_CHECKING:
from electrum.wallet import Abstract_Wallet
@@ -843,7 +842,7 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
except (NotEnoughFunds, NoDynamicFeeEstimates) as e:
# Check if we had enough funds excluding fees,
# if so, still provide opportunity to set lower fees.
fee_policy = FeePolicy('fixed:0')
fee_policy = FixedFeePolicy(0)
tx = mktx(fee_policy)
amount = tx.output_value()
except NotEnoughFunds as e:

View File

@@ -20,7 +20,7 @@ from electrum.network import TxBroadcastError, BestEffortRequestFailed
from electrum.payment_identifier import (PaymentIdentifierType, PaymentIdentifier, invoice_from_payment_identifier,
payment_identifier_from_invoice)
from electrum.submarine_swaps import SwapServerError
from electrum.fee_policy import FeePolicy
from electrum.fee_policy import FeePolicy, FixedFeePolicy
from .amountedit import AmountEdit, BTCAmountEdit, SizedFreezableLineEdit
from .paytoedit import InvalidPaymentIdentifier
@@ -264,7 +264,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
except (NotEnoughFunds, NoDynamicFeeEstimates) as e:
# Check if we had enough funds excluding fees,
# if so, still provide opportunity to set lower fees.
tx = make_tx(FeePolicy('fixed:0'))
tx = make_tx(FixedFeePolicy(0))
except NotEnoughFunds as e:
self.max_button.setChecked(False)
text = self.wallet.get_text_not_enough_funds_mentioning_frozen()