fix(@desktop/profile): do not show store password to keychain dialog during saving Bio with enabled biometrics

This commit is contained in:
mprakhov 2022-12-23 17:11:27 +02:00 committed by Mykhailo Prakhov
parent d59cffd623
commit 3a26799781
1 changed files with 3 additions and 2 deletions

View File

@ -67,9 +67,10 @@ ColumnLayout {
(profileHeader.cropRect.x + profileHeader.cropRect.width).toFixed(),
(profileHeader.cropRect.y + profileHeader.cropRect.height).toFixed());
}
if (biometricsSwitch.checked)
if (biometricsSwitch.checked && !biometricsSwitch.currentStoredValue)
Global.openPopup(storePasswordModal)
else
else if (!biometricsSwitch.checked)
localAccountSettings.storeToKeychainValue = Constants.keychain.storedValue.never;
reset()