Merge pull request #655 from keepassxreboot/fix/update_icon

Ignore update icon if update check is set to never
This commit is contained in:
Sami Vänttinen 2019-11-01 08:59:08 +02:00 committed by GitHub
commit 895b5353b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -881,9 +881,11 @@ keepass.keePassXCUpdateAvailable = function() {
if (daysSinceLastCheck >= page.settings.checkUpdateKeePassXC) {
keepass.checkForNewKeePassXCVersion();
}
return keepass.compareVersion(keepass.currentKeePassXC, keepass.latestKeePassXC.version, false);
}
return keepass.compareVersion(keepass.currentKeePassXC, keepass.latestKeePassXC.version, false);
return false;
};
keepass.checkForNewKeePassXCVersion = function() {

View file

@ -111,7 +111,7 @@ options.initGeneralSettings = function() {
$('#tab-general-settings input#defaultGroup').val(options.settings['defaultGroup']);
$('#tab-general-settings input[type=radio]').each(function() {
if ($(this).val() === options.settings[$(this).attr('name')]) {
if ($(this).val() === String(options.settings[$(this).attr('name')])) {
$(this).attr('checked', options.settings[$(this).attr('name')]);
}
});