1
0

qml: improve OpenWalletDialog, PasswordDialog and PasswordField

This commit is contained in:
Sander van Grieken
2023-02-10 14:14:23 +01:00
parent 2d5ba84e35
commit fc212b1dcc
4 changed files with 79 additions and 67 deletions

View File

@@ -543,13 +543,11 @@ Pane {
Connections {
target: Daemon.currentWallet
function onRequestNewPassword() { // new wallet password
var dialog = app.passwordDialog.createObject(app,
{
'confirmPassword': true,
'title': qsTr('Enter new password'),
'infotext': qsTr('If you forget your password, you\'ll need to\
restore from seed. Please make sure you have your seed stored safely')
} )
var dialog = app.passwordDialog.createObject(app, {
'confirmPassword': true,
'title': qsTr('Enter new password'),
'infotext': qsTr('If you forget your password, you\'ll need to restore from seed. Please make sure you have your seed stored safely')
})
dialog.accepted.connect(function() {
Daemon.currentWallet.set_password(dialog.password)
})