From 38d68e4fc46f77a2c5781c26f2b2b09c1bd5693a Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 4 Jan 2026 09:43:50 +0200 Subject: [PATCH] Fix incorrect error message on keyboard fill --- keepassxc-browser/content/fill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepassxc-browser/content/fill.js b/keepassxc-browser/content/fill.js index 9198c40..d551e52 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -441,7 +441,7 @@ const passwordFillIsAllowed = function(elem) { // Show a specific error notification if current database is not connected const showErrorNotification = async function(errorMessage, notificationType = 'error') { const connectedDatabase = await sendMessage('get_connected_database'); - if (!connectedDatabase?.identifier) { + if (!connectedDatabase?.identifier && kpxc.databaseState === DatabaseState.UNLOCKED) { kpxcUI.createNotification('error', tr('errorCurrentDatabaseNotConnected')); } else if (!await isIframeAllowed()) { // Special error if we are blocking due to iframe