mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1708 from keepassxreboot/fix/fill_after_reconnect
Fill after reconnect
This commit is contained in:
commit
b3917105e0
1 changed files with 5 additions and 1 deletions
|
|
@ -123,6 +123,8 @@ const iconClicked = async function(field, icon) {
|
|||
return;
|
||||
}
|
||||
|
||||
let reconnected = false;
|
||||
|
||||
// Try to reconnect if KeePassXC is not currently connected
|
||||
const connected = await sendMessage('is_connected');
|
||||
if (!connected) {
|
||||
|
|
@ -131,6 +133,8 @@ const iconClicked = async function(field, icon) {
|
|||
kpxcUI.createNotification('error', tr('errorNotConnected'));
|
||||
return;
|
||||
}
|
||||
|
||||
reconnected = true;
|
||||
}
|
||||
|
||||
const databaseHash = await sendMessage('check_database_hash');
|
||||
|
|
@ -141,7 +145,7 @@ const iconClicked = async function(field, icon) {
|
|||
field.focus();
|
||||
}
|
||||
|
||||
if (icon.className.includes('unlock')) {
|
||||
if (icon.className.includes('unlock') || reconnected) {
|
||||
fillCredentials(field);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue