Fix incorrect error message on keyboard fill

This commit is contained in:
varjolintu 2026-01-04 09:43:50 +02:00
parent e444eab33c
commit 38d68e4fc4

View file

@ -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