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

pull/1838/head
antelle 2 years ago
parent 8d258ecab2
commit 535cdc72f7
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C

@ -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)

@ -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

Loading…
Cancel
Save