only set default lock if unset

This commit is contained in:
Kyle Spearrin 2019-06-03 15:07:19 -04:00
parent d620b70dac
commit f8969675e7

View file

@ -121,8 +121,12 @@ namespace Bit.App.Utilities
if(lastBuild == null) if(lastBuild == null)
{ {
// Installed // Installed
var currentLock = await storageService.GetAsync<int?>(Constants.LockOptionKey);
if(currentLock == null)
{
await storageService.SaveAsync(Constants.LockOptionKey, -1); await storageService.SaveAsync(Constants.LockOptionKey, -1);
} }
}
else if(lastBuild != currentBuild) else if(lastBuild != currentBuild)
{ {
// Updated // Updated