Feature - Special tags
- Implemented the 'nonag' tag that prevents nag messages for a task.
This commit is contained in:
@@ -399,8 +399,15 @@ int getDueState (const std::string& due)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Returns a Boolean indicator as to whether a nag message was generated, so
|
||||
// that commands can control the number of nag messages displayed (ie one is
|
||||
// enough).
|
||||
bool nag (Task& task)
|
||||
{
|
||||
// Special tag overrides nagging.
|
||||
if (task.hasTag ("nonag"))
|
||||
return false;
|
||||
|
||||
std::string nagMessage = context.config.get ("nag", "");
|
||||
if (nagMessage != "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user