|
|
|
|
@ -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')) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|