Fix suppressing news nag after reading the news (#3817)

The news nag suppression regressed again in 5c67d22. That commit
intended to remove the sponsorship outro from the news, but also removed
the bookkeeping that marks the news as read. This commit reverts that
part back to its previous state.
This commit is contained in:
Kalle Kietäväinen 2025-03-14 02:01:16 +02:00 committed by GitHub
parent b792018c00
commit 2ee5fb287c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -588,6 +588,11 @@ int CmdNews::execute(std::string& output) {
}
wait_for_enter();
// Set a mark in the config to remember which version's release notes were displayed
if (news_version < current_version) {
CmdConfig::setConfigVariable("news.version", std::string(current_version), false);
}
return 0;
}