diff --git a/app/scripts/auto-type/index.js b/app/scripts/auto-type/index.js index 2c51faa6..4375a6f0 100644 --- a/app/scripts/auto-type/index.js +++ b/app/scripts/auto-type/index.js @@ -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) diff --git a/release-notes.md b/release-notes.md index c6470784..7e5eb408 100644 --- a/release-notes.md +++ b/release-notes.md @@ -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