From f8969675e726be15f31f1b98f1ec2f66372d2034 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 15:07:19 -0400 Subject: [PATCH] only set default lock if unset --- src/App/Utilities/AppHelpers.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App/Utilities/AppHelpers.cs b/src/App/Utilities/AppHelpers.cs index 466309a09..91a13923b 100644 --- a/src/App/Utilities/AppHelpers.cs +++ b/src/App/Utilities/AppHelpers.cs @@ -121,7 +121,11 @@ namespace Bit.App.Utilities if(lastBuild == null) { // Installed - await storageService.SaveAsync(Constants.LockOptionKey, -1); + var currentLock = await storageService.GetAsync(Constants.LockOptionKey); + if(currentLock == null) + { + await storageService.SaveAsync(Constants.LockOptionKey, -1); + } } else if(lastBuild != currentBuild) {