From f387300ab21fab37374b4b1e48eb13c285abecbc Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 12 Jan 2026 17:53:56 +0000 Subject: [PATCH] qml: FeePicker: use UI_UNIT_NAME constants, instead of hardcoding --- electrum/gui/qml/components/controls/FeePicker.qml | 4 ++-- electrum/gui/qml/qeapp.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/controls/FeePicker.qml b/electrum/gui/qml/components/controls/FeePicker.qml index 932e9afa1..afbabb110 100644 --- a/electrum/gui/qml/components/controls/FeePicker.qml +++ b/electrum/gui/qml/components/controls/FeePicker.qml @@ -151,7 +151,7 @@ Item { Label { Layout.fillWidth: true color: Material.accentColor - text: qsTr('sat/vbyte') + text: UI_UNIT_NAME.FEERATE_SAT_PER_VBYTE } TextField { @@ -170,7 +170,7 @@ Item { Label { Layout.fillWidth: true color: Material.accentColor - text: qsTr('sat') + text: UI_UNIT_NAME.FIXED_SAT } } diff --git a/electrum/gui/qml/qeapp.py b/electrum/gui/qml/qeapp.py index a4df18b13..db47c89e3 100644 --- a/electrum/gui/qml/qeapp.py +++ b/electrum/gui/qml/qeapp.py @@ -553,6 +553,7 @@ class ElectrumQmlApplication(QGuiApplication): self.context.setContextProperty('UI_UNIT_NAME', { "FEERATE_SAT_PER_VBYTE": electrum.util.UI_UNIT_NAME_FEERATE_SAT_PER_VBYTE, "FEERATE_SAT_PER_VB": electrum.util.UI_UNIT_NAME_FEERATE_SAT_PER_VB, + "FIXED_SAT": electrum.util.UI_UNIT_NAME_FIXED_SAT, "TXSIZE_VBYTES": electrum.util.UI_UNIT_NAME_TXSIZE_VBYTES, "MEMPOOL_MB": electrum.util.UI_UNIT_NAME_MEMPOOL_MB, })