auto-lock when Windows is locked

This commit is contained in:
antelle 2017-06-02 20:04:57 +02:00
parent f8f81ae07f
commit bb8e3390a0
3 changed files with 10 additions and 0 deletions

View File

@ -13,11 +13,15 @@ const IdleTracker = {
Backbone.trigger('user-idle');
}
},
osLock: function() {
Backbone.trigger('user-idle');
},
regUserAction: function() {
this.actionTime = Date.now();
}
};
Backbone.on('power-monitor-resume', IdleTracker.checkIdle, IdleTracker);
Backbone.on('os-lock', IdleTracker.osLock, IdleTracker);
module.exports = IdleTracker;

View File

@ -153,6 +153,9 @@ function createMainWindow() {
mainWindow.on('enter-full-screen', () => {
emitBackboneEvent('enter-full-screen');
});
mainWindow.on('session-end', () => {
emitBackboneEvent('os-lock');
});
restoreMainWindowPosition();
}

View File

@ -1,5 +1,8 @@
Release notes
-------------
##### v1.6.0 (WIP)
`+` auto-lock when Windows is locked
##### v1.5.3 (2017-05-29)
`-` fix #638: password generator drag issues
`-` fix #636: broken layout in edge 15