mirror of https://github.com/keeweb/keeweb
auto-lock when Windows is locked
parent
f8f81ae07f
commit
bb8e3390a0
|
@ -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;
|
||||
|
|
|
@ -153,6 +153,9 @@ function createMainWindow() {
|
|||
mainWindow.on('enter-full-screen', () => {
|
||||
emitBackboneEvent('enter-full-screen');
|
||||
});
|
||||
mainWindow.on('session-end', () => {
|
||||
emitBackboneEvent('os-lock');
|
||||
});
|
||||
restoreMainWindowPosition();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue