From 0c0b551f1ce7c6a0ef11aecc3821c08802c65437 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 26 Apr 2018 16:17:14 -0400 Subject: [PATCH] move storage defaults out to app --- jslib | 2 +- src/main.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 35039fdae2..12533dd951 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 35039fdae2038f6bdfbdef6616b2bfae0053d47b +Subproject commit 12533dd951e5f248ee82ca0100fb9fd215fc6bd3 diff --git a/src/main.ts b/src/main.ts index 959f2cf0f8..45da0b6c74 100644 --- a/src/main.ts +++ b/src/main.ts @@ -55,7 +55,11 @@ export class Main { this.logService = new ElectronLogService(null, app.getPath('userData')); this.i18nService = new I18nService('en', './locales/'); - this.storageService = new ElectronStorageService(); + + const storageDefaults: any = {}; + // Default lock options to "on restart". + storageDefaults[ConstantsService.lockOptionKey] = -1; + this.storageService = new ElectronStorageService(storageDefaults); this.windowMain = new WindowMain(this.storageService); this.messagingMain = new MessagingMain(this);