mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Consider news read if news.version
> current version (#3734)
Avoids two installations of taskwarrior with differing versions from constantly nagging and rewriting `news.version`
This commit is contained in:
parent
1b9353dccc
commit
3bf0200602
1 changed files with 2 additions and 2 deletions
|
@ -593,7 +593,7 @@ int CmdNews::execute(std::string& output) {
|
|||
std::cout << outro.str();
|
||||
|
||||
// Set a mark in the config to remember which version's release notes were displayed
|
||||
if (news_version != current_version) {
|
||||
if (news_version < current_version) {
|
||||
CmdConfig::setConfigVariable("news.version", std::string(current_version), false);
|
||||
|
||||
// Revert back to default signal handling after displaying the outro
|
||||
|
@ -641,7 +641,7 @@ bool CmdNews::should_nag() {
|
|||
|
||||
Version current_version = Version::Current();
|
||||
|
||||
if (news_version == current_version) {
|
||||
if (news_version >= current_version) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue