diff --git a/electrum/gui/qml/components/Channels.qml b/electrum/gui/qml/components/Channels.qml index dfc2001ed..4bb7305ed 100644 --- a/electrum/gui/qml/components/Channels.qml +++ b/electrum/gui/qml/components/Channels.qml @@ -133,15 +133,6 @@ Pane { icon.source: '../../icons/lightning.png' } - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - text: qsTr('Channel backups') - onClicked: { - app.stack.push(Qt.resolvedUrl('ChannelBackups.qml')) - } - icon.source: '../../icons/file.png' - } } } diff --git a/electrum/gui/qml/components/WalletDetails.qml b/electrum/gui/qml/components/WalletDetails.qml index 54378d517..75f0ed59c 100644 --- a/electrum/gui/qml/components/WalletDetails.qml +++ b/electrum/gui/qml/components/WalletDetails.qml @@ -473,12 +473,9 @@ Pane { FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 - visible: Daemon.currentWallet.walletType == 'imported' - text: Daemon.currentWallet.isWatchOnly - ? qsTr('Add addresses') - : qsTr('Add keys') - icon.source: '../../icons/add.png' - onClicked: rootItem.importAddressesKeys() + text: qsTr('Delete Wallet') + onClicked: rootItem.deleteWallet() + icon.source: '../../icons/delete.png' } FlatButton { Layout.fillWidth: true @@ -490,9 +487,12 @@ Pane { FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 - text: qsTr('Delete Wallet') - onClicked: rootItem.deleteWallet() - icon.source: '../../icons/delete.png' + visible: Daemon.currentWallet.walletType == 'imported' + text: Daemon.currentWallet.isWatchOnly + ? qsTr('Add addresses') + : qsTr('Add keys') + icon.source: '../../icons/add.png' + onClicked: rootItem.importAddressesKeys() } FlatButton { Layout.fillWidth: true @@ -502,6 +502,16 @@ Pane { visible: Daemon.currentWallet && Daemon.currentWallet.canHaveLightning && !Daemon.currentWallet.isLightning icon.source: '../../icons/lightning.png' } + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 + text: qsTr('Channel backups') + visible: Daemon.currentWallet && Daemon.currentWallet.isLightning + icon.source: '../../icons/lightning.png' + onClicked: { + app.stack.push(Qt.resolvedUrl('ChannelBackups.qml')) + } + } } }