fix #1278: entry selection auto-type window issues

This commit is contained in:
antelle 2019-09-29 15:43:17 +02:00
parent 511fccd084
commit 8bfa1fadda
2 changed files with 2 additions and 3 deletions

View File

@ -28,6 +28,7 @@ const AutoType = {
Events.on('auto-type', e => this.handleEvent(e));
Events.on('main-window-blur', e => this.resetPendingEvent(e));
Events.on('main-window-will-close', e => this.resetPendingEvent(e));
appModel.files.on('change', () => this.processPendingEvent());
},
handleEvent(e) {
@ -209,7 +210,6 @@ const AutoType = {
const evt = { filter, windowInfo };
if (!this.appModel.files.hasOpenFiles()) {
this.pendingEvent = evt;
this.appModel.files.once('change', this.processPendingEvent, this);
logger.debug('auto-type event delayed');
this.focusMainWindow();
} else {
@ -262,7 +262,6 @@ const AutoType = {
resetPendingEvent() {
if (this.pendingEvent) {
this.pendingEvent = null;
this.appModel.files.off('change', this.processPendingEvent, this);
logger.debug('auto-type event cancelled');
}
},
@ -273,7 +272,6 @@ const AutoType = {
}
logger.debug('processing pending auto-type event');
const evt = this.pendingEvent;
this.appModel.files.off('change', this.processPendingEvent, this);
this.pendingEvent = null;
this.processEventWithFilter(evt);
}

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.11.4 (2019-09-29)
`-` fix #1277: auto-type window matching on Linux
`-` fix #1278: entry selection auto-type window issues
`-` fixed displaying errors on the plugins page
##### v1.11.3 (2019-09-29)