WizardHome: fix kdf textbox displaying incorrect value

This commit is contained in:
selsta 2021-04-20 21:28:04 +02:00
parent 02ae14fd6b
commit 820b221fa5
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -223,7 +223,7 @@ Rectangle {
validator: IntValidator { bottom: 1 }
text: persistentSettings.kdfRounds ? persistentSettings.kdfRounds : "1"
onTextChanged: {
kdfRoundsText.text = persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1;
persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1;
}
}