mirror of https://github.com/keeweb/keeweb.git
fix #1805: auto-unchecking auto-type filters if nothing found
This commit is contained in:
parent
8d258ecab2
commit
535cdc72f7
|
@ -246,7 +246,7 @@ const AutoType = {
|
||||||
},
|
},
|
||||||
|
|
||||||
processEventWithFilter(evt) {
|
processEventWithFilter(evt) {
|
||||||
const entries = evt.filter.getEntries();
|
let entries = evt.filter.getEntries();
|
||||||
if (entries.length === 1 && AppSettingsModel.directAutotype) {
|
if (entries.length === 1 && AppSettingsModel.directAutotype) {
|
||||||
this.hideWindow(() => {
|
this.hideWindow(() => {
|
||||||
this.runAndHandleResult({ entry: entries[0] }, evt.windowInfo.id);
|
this.runAndHandleResult({ entry: entries[0] }, evt.windowInfo.id);
|
||||||
|
@ -255,6 +255,19 @@ const AutoType = {
|
||||||
}
|
}
|
||||||
this.focusMainWindow();
|
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 humanReadableTarget = evt.filter.title || evt.filter.url;
|
||||||
const topMessage = humanReadableTarget
|
const topMessage = humanReadableTarget
|
||||||
? Locale.autoTypeMsgMatchedByWindow.replace('{}', humanReadableTarget)
|
? Locale.autoTypeMsgMatchedByWindow.replace('{}', humanReadableTarget)
|
||||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
||||||
-------------
|
-------------
|
||||||
##### v1.18.3 (2021-05-09)
|
##### v1.18.3 (2021-05-09)
|
||||||
`-` fix #1804: filling OTP in browser extensions
|
`-` fix #1804: filling OTP in browser extensions
|
||||||
|
`*` fix #1805: auto-unchecking auto-type filters if nothing found
|
||||||
|
|
||||||
##### v1.18.2 (2021-05-08)
|
##### v1.18.2 (2021-05-08)
|
||||||
`-` fix #1802: opening files with saved keyfiles
|
`-` fix #1802: opening files with saved keyfiles
|
||||||
|
|
Loading…
Reference in New Issue