1
0

upgrade wallet automatically when needed

This commit is contained in:
Sander van Grieken
2022-03-10 12:48:17 +01:00
parent 670882c3c0
commit 49b7a7518c

View File

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