Update selected credential on update.

Should fix #167
This commit is contained in:
Dag Heyman 2017-07-05 10:15:57 +02:00
parent e142a54c3e
commit ba554eca09
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -181,6 +181,14 @@ Python {
result.push(getCredential(cred.name))
continue
}
// The selected credential should still be selected,
// with an updated code.
if (selected != null) {
if (selected.name === cred.name) {
selected = cred
}
}
// TOTP credentials should be updated
result.push(cred)
}