Merge pull request #638 from keepassxreboot/fix/associate_reset

Fix reseting association state
This commit is contained in:
Sami Vänttinen 2019-10-16 08:59:50 +03:00 committed by GitHub
commit 9edf6d1956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1158,6 +1158,8 @@ keepass.updatePopup = function(iconType) {
// Updates the database hashes to content script
keepass.updateDatabase = async function() {
keepass.associated.value = false;
keepass.associated.hash = null;
await keepass.testAssociation(null);
const configured = await keepass.isConfigured();
keepass.updatePopup(configured ? 'normal' : 'cross');