diff --git a/jslib b/jslib index 35039fda..12533dd9 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 35039fdae2038f6bdfbdef6616b2bfae0053d47b +Subproject commit 12533dd951e5f248ee82ca0100fb9fd215fc6bd3 diff --git a/src/main.ts b/src/main.ts index 959f2cf0..45da0b6c 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);