mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Merge pull request #359
1c58997
WizardPasswordInput: update password strength on paste too (moneromooo.monero)d831395
WizardPassword: clamp displayed password strength to widget max (moneromooo.monero)
This commit is contained in:
commit
8f95e95b21
2 changed files with 4 additions and 1 deletions
|
@ -84,9 +84,11 @@ Item {
|
|||
strength = 0
|
||||
// use a slight parabola to discourage short passwords
|
||||
strength = strength ^ 1.2 / 3
|
||||
// mapScope does not clamp
|
||||
if (strength > 100)
|
||||
strength = 100
|
||||
// privacyLevel component uses 1..13 scale
|
||||
privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ FocusScope {
|
|||
border.width: 0
|
||||
}
|
||||
}
|
||||
onTextChanged: changed(text)
|
||||
|
||||
Keys.onReleased: {
|
||||
changed(text)
|
||||
|
|
Loading…
Reference in a new issue