chore: use OS enum value

and not a string
This commit is contained in:
Lukáš Tinkl 2023-04-02 20:49:12 +02:00 committed by Lukáš Tinkl
parent 847ad5e7de
commit 49651fe044
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ StatusModal {
function onChangePasswordResponse(success, errorMsg) {
if (success) {
if (Qt.platform.os === "osx" && localAccountSettings.storeToKeychainValue !== Constants.keychain.storedValue.never) {
if (Qt.platform.os === Constants.mac && localAccountSettings.storeToKeychainValue !== Constants.keychain.storedValue.never) {
localAccountSettings.storeToKeychainValue = Constants.keychain.storedValue.notNow;
}
passwordChanged()