mirror of https://github.com/keeweb/keeweb.git
fixed extra file opened during auto-type
This commit is contained in:
parent
1789d9bb67
commit
ce3ff8c3d8
|
@ -240,7 +240,9 @@ const AutoType = {
|
||||||
},
|
},
|
||||||
|
|
||||||
focusMainWindow() {
|
focusMainWindow() {
|
||||||
setTimeout(() => Launcher.showMainWindow(), Timeouts.RedrawInactiveWindow);
|
if (!Launcher.isAppFocused()) {
|
||||||
|
setTimeout(() => Launcher.showMainWindow(), Timeouts.RedrawInactiveWindow);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
processEventWithFilter(evt) {
|
processEventWithFilter(evt) {
|
||||||
|
@ -270,9 +272,15 @@ const AutoType = {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.selectEntryView.render();
|
this.selectEntryView.render();
|
||||||
this.selectEntryView.on('show-open-files', () => {
|
this.selectEntryView.on('show-open-files', async () => {
|
||||||
this.selectEntryView.hide();
|
this.selectEntryView.hide();
|
||||||
Events.emit('open-file');
|
try {
|
||||||
|
await AppModel.instance.unlockAnyFile('autoTypeUnlockMessage');
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.selectEntryView.show();
|
||||||
|
this.selectEntryView.render();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue