From f522e819a5356e0b128647aeec305db9e0c02938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20V=C3=A4nttinen?= Date: Sun, 4 Jan 2026 13:47:14 +0200 Subject: [PATCH] Fix incorrect error message on keyboard fill (#2814) --- 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