qml: move channel backups to WalletDetails
This commit is contained in:
@@ -133,15 +133,6 @@ Pane {
|
|||||||
icon.source: '../../icons/lightning.png'
|
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'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -473,12 +473,9 @@ Pane {
|
|||||||
FlatButton {
|
FlatButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: 1
|
||||||
visible: Daemon.currentWallet.walletType == 'imported'
|
text: qsTr('Delete Wallet')
|
||||||
text: Daemon.currentWallet.isWatchOnly
|
onClicked: rootItem.deleteWallet()
|
||||||
? qsTr('Add addresses')
|
icon.source: '../../icons/delete.png'
|
||||||
: qsTr('Add keys')
|
|
||||||
icon.source: '../../icons/add.png'
|
|
||||||
onClicked: rootItem.importAddressesKeys()
|
|
||||||
}
|
}
|
||||||
FlatButton {
|
FlatButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -490,9 +487,12 @@ Pane {
|
|||||||
FlatButton {
|
FlatButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: 1
|
||||||
text: qsTr('Delete Wallet')
|
visible: Daemon.currentWallet.walletType == 'imported'
|
||||||
onClicked: rootItem.deleteWallet()
|
text: Daemon.currentWallet.isWatchOnly
|
||||||
icon.source: '../../icons/delete.png'
|
? qsTr('Add addresses')
|
||||||
|
: qsTr('Add keys')
|
||||||
|
icon.source: '../../icons/add.png'
|
||||||
|
onClicked: rootItem.importAddressesKeys()
|
||||||
}
|
}
|
||||||
FlatButton {
|
FlatButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -502,6 +502,16 @@ Pane {
|
|||||||
visible: Daemon.currentWallet && Daemon.currentWallet.canHaveLightning && !Daemon.currentWallet.isLightning
|
visible: Daemon.currentWallet && Daemon.currentWallet.canHaveLightning && !Daemon.currentWallet.isLightning
|
||||||
icon.source: '../../icons/lightning.png'
|
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'))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user