mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Move the recursion block to the right place in addContext
This commit is contained in:
parent
87c05c4c6d
commit
1bba59e972
1 changed files with 3 additions and 4 deletions
|
@ -627,7 +627,9 @@ void CLI2::addContext (bool readable, bool writeable)
|
|||
}
|
||||
}
|
||||
|
||||
// Apply the context. Readable (filtering) takes precedence.
|
||||
// Apply the context. Readable (filtering) takes precedence. Also set the
|
||||
// block now, since addFilter calls analyze(), which calls addContext().
|
||||
_context_added = true;
|
||||
if (readable)
|
||||
addFilter (contextString);
|
||||
else if (writeable)
|
||||
|
@ -639,9 +641,6 @@ void CLI2::addContext (bool readable, bool writeable)
|
|||
"Context '{1}' set. Use 'task context none' to remove.",
|
||||
Context::getContext ().config.get ("context")
|
||||
));
|
||||
|
||||
// Set the block, we don't want to apply context multiple times by accident.
|
||||
_context_added = true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue