mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
More recent changes
This commit is contained in:
parent
1e5ec03d79
commit
541aa82c0c
4 changed files with 9 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -320,5 +320,6 @@ kpxcEvent.messageHandlers = {
|
|||
'username_field_detected': kpxcEvent.usernameFieldDetected,
|
||||
'save_settings': kpxcEvent.saveSettings,
|
||||
'update_available_keepassxc': kpxcEvent.updateAvailableKeePassXC,
|
||||
'update_context_menu': page.updateContextMenu
|
||||
'update_context_menu': page.updateContextMenu,
|
||||
'update_popup': page.updatePopup
|
||||
};
|
||||
|
|
|
|||
|
|
@ -315,6 +315,10 @@ page.updateContextMenu = async function(tab, credentials) {
|
|||
}
|
||||
};
|
||||
|
||||
page.updatePopup = function(tab) {
|
||||
browserAction.showDefault(tab);
|
||||
}
|
||||
|
||||
const createContextMenuItem = function({ action, args, ...options }) {
|
||||
return browser.contextMenus.create({
|
||||
contexts: menuContexts,
|
||||
|
|
|
|||
|
|
@ -378,6 +378,7 @@ options.initConnectedDatabases = function() {
|
|||
});
|
||||
|
||||
hideEmptyMessageRow();
|
||||
browser.runtime.sendMessage({ action: 'update_popup' });
|
||||
});
|
||||
|
||||
const removeButtonClicked = function(e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue