fix #1805: auto-unchecking auto-type filters if nothing found

This commit is contained in:
antelle 2021-05-09 14:07:22 +02:00
parent 8d258ecab2
commit 535cdc72f7
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 15 additions and 1 deletions

View File

@ -246,7 +246,7 @@ const AutoType = {
},
processEventWithFilter(evt) {
const entries = evt.filter.getEntries();
let entries = evt.filter.getEntries();
if (entries.length === 1 && AppSettingsModel.directAutotype) {
this.hideWindow(() => {
this.runAndHandleResult({ entry: entries[0] }, evt.windowInfo.id);
@ -255,6 +255,19 @@ const AutoType = {
}
this.focusMainWindow();
if (entries.length === 0) {
if (evt.filter.useUrl) {
evt.filter.useUrl = false;
if (evt.filter.title) {
evt.filter.useTitle = true;
}
}
entries = evt.filter.getEntries();
if (entries.length === 0 && evt.filter.useTitle) {
evt.filter.useTitle = false;
}
}
const humanReadableTarget = evt.filter.title || evt.filter.url;
const topMessage = humanReadableTarget
? Locale.autoTypeMsgMatchedByWindow.replace('{}', humanReadableTarget)

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.18.3 (2021-05-09)
`-` fix #1804: filling OTP in browser extensions
`*` fix #1805: auto-unchecking auto-type filters if nothing found
##### v1.18.2 (2021-05-08)
`-` fix #1802: opening files with saved keyfiles