Merge pull request #115 from keepassxreboot/new_bring_front

Don't show remember popup if database is closed
This commit is contained in:
Janek Bevendorff 2018-05-09 21:14:22 +02:00 committed by GitHub
commit 2721ce7148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,7 +226,17 @@ kpxcEvent.onRemoveCredentialsFromTabInformation = function(callback, tab) {
};
kpxcEvent.onSetRememberPopup = function(callback, tab, username, password, url, usernameExists, credentialsList) {
browserAction.setRememberPopup(tab.id, username, password, url, usernameExists, credentialsList);
keepass.testAssociation((response) => {
if (response) {
keepass.isConfigured().then((configured) => {
if (configured) {
browserAction.setRememberPopup(tab.id, username, password, url, usernameExists, credentialsList);
}
}).catch((e) => {
console.log(e);
});
}
}, tab);
};
kpxcEvent.onLoginPopup = function(callback, tab, logins) {