Merge pull request #1952 from keepassxreboot/fix/use_bang_icon_when_connection_is_needed

Use bang icon when connection is needed
This commit is contained in:
Sami Vänttinen 2023-08-03 08:15:51 +03:00 committed by GitHub
commit 4e84b90dff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,8 @@ browserAction.showDefault = async function(tab) {
if (!response && !keepass.isKeePassXCAvailable) {
popupData.iconType = 'cross';
} else if (!keepass.isAssociated() && !keepass.isDatabaseClosed) {
popupData.iconType = 'bang';
} else if (keepass.isKeePassXCAvailable && keepass.isDatabaseClosed) {
popupData.iconType = 'locked';
}

View file

@ -241,7 +241,7 @@ keepass.associate = async function(tab) {
keepass.associated.value = true;
keepass.associated.hash = response.hash || 0;
browserAction.show(tab);
browserAction.showDefault(tab);
return AssociatedAction.NEW_ASSOCIATION;
}

View file

@ -380,6 +380,7 @@ options.initConnectedDatabases = function() {
});
hideEmptyMessageRow();
browser.runtime.sendMessage({ action: 'update_popup' });
});
const removeButtonClicked = function(e) {