Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.6.1] -WITH_XC_UPDATECHECK=OFF does not prevent KXC from asking user to check for updates #5350

Closed
Germano0 opened this issue Aug 27, 2020 · 1 comment
Assignees
Labels

Comments

@Germano0
Copy link
Contributor

Fedora co-maintainer here.
-WITH_XC_UPDATECHECK=OFF should disable automatic updates check at KeepassXC startup. By the way I have been reported by Fedora users that the first time you run KeepassXC (from a clean OS installation, I tried myself too), you will be prompted for Would you like KeePassXC to check for updates on startup? After the user answers the question, a flag UpdateCheckMessageShown=true is added to file ~/.config/keepassxc/keepassxc.ini
The flag should prevent KeepassXC from asking this question.

@droidmonkey
Copy link
Member

Your flag is incorrect, should be -DWITH_XC_UPDATECHECK=OFF the question is properly guarded:

void MainWindow::performUpdateCheck()
{
#ifdef WITH_XC_UPDATECHECK
if (!config()->get(Config::UpdateCheckMessageShown).toBool()) {
auto result =
MessageBox::question(this,
tr("Check for updates on startup?"),
tr("Would you like KeePassXC to check for updates on startup?") + "\n\n"
+ tr("You can always check for updates manually from the application menu."),
MessageBox::Yes | MessageBox::No,
MessageBox::Yes);
config()->set(Config::GUI_CheckForUpdates, (result == MessageBox::Yes));
config()->set(Config::UpdateCheckMessageShown, true);
}
if (config()->get(Config::GUI_CheckForUpdates).toBool()) {
updateCheck()->checkForUpdates(false);
}
#endif
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants