fix #1619: auto-locking ignored a field being edited

This commit is contained in:
antelle 2020-11-19 11:21:45 +01:00
parent ffb68b1651
commit d1bcdca0d3
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
3 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ const IdleTracker = {
const idleMinutes = (Date.now() - this.actionTime) / 1000 / 60;
const maxIdleMinutes = AppSettingsModel.idleMinutes;
if (maxIdleMinutes && idleMinutes > maxIdleMinutes) {
Events.emit('before-user-idle');
Events.emit('user-idle');
}
},

View File

@ -61,7 +61,7 @@ class FieldViewText extends FieldView {
Events.on('click', fieldValueBlurBound);
this.stopBlurListener = () => Events.off('click', fieldValueBlurBound);
this.listenTo(Events, 'main-window-will-close', this.externalEndEdit);
this.listenTo(Events, 'user-idle', this.externalEndEdit);
this.listenTo(Events, 'before-user-idle', this.externalEndEdit);
if (this.model.multiline) {
this.setInputHeight();
}

View File

@ -4,6 +4,7 @@ Release notes
`-` fixed a performance issue in searching entries
`*` improved the "Show all file" checkbox behavior
`+` shortcut to copy OTP
`-` fixed several issues in field editing
`-` fix #1561: error during loading configs after reset
##### v1.15.7 (2020-09-12)