qml: put FlatButtons in ButtonContainer where (potentially) more buttons are grouped
This commit is contained in:
@@ -460,32 +460,40 @@ Pane {
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
ButtonContainer {
|
||||
Layout.fillWidth: true
|
||||
visible: Daemon.currentWallet.walletType == 'imported'
|
||||
text: Daemon.currentWallet.isWatchOnly
|
||||
? qsTr('Import additional addresses')
|
||||
: qsTr('Import additional keys')
|
||||
onClicked: rootItem.importAddressesKeys()
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Change Password')
|
||||
onClicked: rootItem.changePassword()
|
||||
icon.source: '../../icons/lock.png'
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Delete Wallet')
|
||||
onClicked: rootItem.deleteWallet()
|
||||
icon.source: '../../icons/delete.png'
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Enable Lightning')
|
||||
onClicked: rootItem.enableLightning()
|
||||
visible: Daemon.currentWallet && Daemon.currentWallet.canHaveLightning && !Daemon.currentWallet.isLightning
|
||||
icon.source: '../../icons/lightning.png'
|
||||
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
visible: Daemon.currentWallet.walletType == 'imported'
|
||||
text: Daemon.currentWallet.isWatchOnly
|
||||
? qsTr('Import additional addresses')
|
||||
: qsTr('Import additional keys')
|
||||
onClicked: rootItem.importAddressesKeys()
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
text: qsTr('Change Password')
|
||||
onClicked: rootItem.changePassword()
|
||||
icon.source: '../../icons/lock.png'
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
text: qsTr('Delete Wallet')
|
||||
onClicked: rootItem.deleteWallet()
|
||||
icon.source: '../../icons/delete.png'
|
||||
}
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
text: qsTr('Enable Lightning')
|
||||
onClicked: rootItem.enableLightning()
|
||||
visible: Daemon.currentWallet && Daemon.currentWallet.canHaveLightning && !Daemon.currentWallet.isLightning
|
||||
icon.source: '../../icons/lightning.png'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user