Fix incorrect error message on keyboard fill (#2814)

This commit is contained in:
Sami Vänttinen 2026-01-04 13:47:14 +02:00 committed by GitHub
parent 1dc3dcd38c
commit f522e819a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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