Browse Source

upgrade wallet automatically when needed

patch-4
Sander van Grieken 3 years ago
parent
commit
49b7a7518c
  1. 25
      electrum/gui/qml/components/OpenWallet.qml

25
electrum/gui/qml/components/OpenWallet.qml

@ -85,27 +85,6 @@ Pane {
text: qsTr('Split wallet')
onClicked: wallet_db.doSplit()
}
Label {
text: qsTr('Wallet requires upgrade')
visible: wallet_db.requiresUpgrade
}
Button {
visible: wallet_db.requiresUpgrade
text: qsTr('Upgrade')
onClicked: wallet_db.doUpgrade()
}
Rectangle {
Layout.columnSpan: 2
Layout.alignment: Qt.AlignHCenter
visible: wallet_db.upgrading
width: 100
height: 100
color: "red"
}
}
WalletDB {
@ -116,6 +95,10 @@ Pane {
Daemon.availableWallets.reload()
app.stack.pop()
}
onRequiresUpgradeChanged: {
if (requiresUpgrade)
wallet_db.doUpgrade()
}
onReadyChanged: {
if (ready) {
Daemon.load_wallet(Daemon.path, password.text)

Loading…
Cancel
Save