mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix reconnecting from username icon
This commit is contained in:
parent
a2321b2424
commit
129259b1ff
1 changed files with 6 additions and 2 deletions
|
|
@ -123,10 +123,14 @@ const iconClicked = async function(field, icon) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Try to reconnect if KeePassXC is not currently connected
|
||||
const connected = await sendMessage('is_connected');
|
||||
if (!connected) {
|
||||
kpxcUI.createNotification('error', tr('errorNotConnected'));
|
||||
return;
|
||||
const reconnectResponse = await sendMessage('reconnect');
|
||||
if (!reconnectResponse.keePassXCAvailable) {
|
||||
kpxcUI.createNotification('error', tr('errorNotConnected'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const databaseHash = await sendMessage('check_database_hash');
|
||||
|
|
|
|||
Loading…
Reference in a new issue