closing the selection view on inactivity

This commit is contained in:
antelle 2021-04-28 23:08:01 +02:00
parent 550f93d4ae
commit 7adc77c823
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 7 additions and 0 deletions

View File

@ -447,7 +447,14 @@ const ProtocolHandlers = {
focusKeeWeb();
const inactivityTimer = setTimeout(() => {
selectEntryView.emit('result', undefined);
}, Timeouts.KeeWebConnectRequest / 10);
const result = await selectEntryView.showAndGetResult();
clearTimeout(inactivityTimer);
entry = result?.entry;
if (!entry) {
throw makeError(Errors.userRejected);