Skip to content

Commit 2ab534e

Browse files
committed
qml: add ellipsis to buttons that are followed by another chance to bail
1 parent bc4fcd8 commit 2ab534e

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

electrum/gui/qml/components/ConfirmTxDialog.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ ElDialog {
274274
id: sendButton
275275
Layout.fillWidth: true
276276
text: (Daemon.currentWallet.isWatchOnly || !Daemon.currentWallet.canSignWithoutCosigner)
277-
? qsTr('Finalize')
277+
? qsTr('Finalize...')
278278
: qsTr('Pay...')
279279
icon.source: '../../icons/confirmed.png'
280280
enabled: finalizer.valid

electrum/gui/qml/components/SweepDialog.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ ElDialog {
143143
Layout.preferredWidth: 1
144144
enabled: valid
145145
icon.source: '../../icons/tab_send.png'
146-
text: qsTr('Sweep')
146+
text: qsTr('Sweep...')
147147
onClicked: {
148148
console.log('sweeping')
149149
root.privateKeys = sweepkeys.text

electrum/gui/qml/components/TxDetails.qml

+7-5
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Pane {
366366
Layout.preferredWidth: 1
367367
id: feebumpButton
368368
icon.source: '../../icons/add.png'
369-
text: qsTr('Bump fee')
369+
text: qsTr('Bump fee...')
370370
visible: txdetails.canBump || txdetails.canCpfp
371371
onClicked: {
372372
if (txdetails.canBump) {
@@ -382,7 +382,7 @@ Pane {
382382
Layout.preferredWidth: 1
383383
id: cancelButton
384384
icon.source: '../../icons/closebutton.png'
385-
text: qsTr('Cancel Tx')
385+
text: qsTr('Cancel Tx...')
386386
visible: txdetails.canCancel
387387
onClicked: {
388388
var dialog = rbfCancelDialog.createObject(root, { txid: txdetails.txid })
@@ -393,7 +393,9 @@ Pane {
393393
Layout.fillWidth: true
394394
Layout.preferredWidth: 1
395395
icon.source: '../../icons/key.png'
396-
text: qsTr('Sign')
396+
text: txdetails.shouldConfirm
397+
? qsTr('Sign...')
398+
: qsTr('Sign')
397399
visible: txdetails.canSign
398400
onClicked: {
399401
if (txdetails.shouldConfirm) {
@@ -425,7 +427,7 @@ Pane {
425427
Layout.fillWidth: true
426428
Layout.preferredWidth: 1
427429
icon.source: '../../icons/qrcode_white.png'
428-
text: qsTr('Share')
430+
text: qsTr('Share...')
429431
enabled: !txdetails.isUnrelated && !txdetails.isRemoved
430432
onClicked: {
431433
var msg = ''
@@ -465,7 +467,7 @@ Pane {
465467
Layout.fillWidth: true
466468
Layout.preferredWidth: 1
467469
icon.source: '../../icons/delete.png'
468-
text: qsTr('Remove')
470+
text: qsTr('Remove...')
469471
visible: txdetails.canRemove
470472
onClicked: txdetails.removeLocalTx()
471473
}

electrum/gui/qml/components/WalletMainView.qml

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ Item {
141141
message: qsTr('Sweep transaction'),
142142
showOptions: false,
143143
amountLabelText: qsTr('Total sweep amount'),
144-
sendButtonText: qsTr('Sweep')
144+
sendButtonText: Daemon.currentWallet.isWatchOnly
145+
? qsTr('Sweep...')
146+
: qsTr('Sweep')
145147
})
146148
finalizerDialog.accepted.connect(function() {
147149
if (Daemon.currentWallet.isWatchOnly) {
@@ -225,7 +227,7 @@ Item {
225227
icon.color: action.enabled ? 'transparent' : Material.iconDisabledColor
226228
icon.source: '../../icons/sweep.png'
227229
action: Action {
228-
text: qsTr('Sweep key')
230+
text: qsTr('Sweep key(s)')
229231
onTriggered: {
230232
startSweep()
231233
menu.deselect()

0 commit comments

Comments
 (0)