diff --git a/jslib b/jslib index 2858724f..212a2e37 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 2858724f4431038be190fc0b748efe287dd1bae6 +Subproject commit 212a2e3745e6e0e2b3057ed308c47daf6aeefbc8 diff --git a/src/main/powerMonitor.main.ts b/src/main/powerMonitor.main.ts index 32ad1972..7c4e130f 100644 --- a/src/main/powerMonitor.main.ts +++ b/src/main/powerMonitor.main.ts @@ -23,8 +23,8 @@ export class PowerMonitorMain { powerMonitor.on('suspend', async () => { const options = await this.getVaultTimeoutOptions(); if (options[0] === -3) { - options[1] === 'lock' ? this.main.messagingService.send('lockVault') : - this.main.messagingService.send('logout', { expired: false }); + options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) : + this.main.messagingService.send('lockVault'); } }); } @@ -34,8 +34,8 @@ export class PowerMonitorMain { powerMonitor.on('lock-screen', async () => { const options = await this.getVaultTimeoutOptions(); if (options[0] === -2) { - options[1] === 'lock' ? this.main.messagingService.send('lockVault') : - this.main.messagingService.send('logout', { expired: false }); + options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) : + this.main.messagingService.send('lockVault'); } }); } @@ -51,8 +51,8 @@ export class PowerMonitorMain { const options = await this.getVaultTimeoutOptions(); if (options[0] === -4) { - options[1] === 'lock' ? this.main.messagingService.send('lockVault') : - this.main.messagingService.send('logout', { expired: false }); + options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) : + this.main.messagingService.send('lockVault'); } }