mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Hooks
- Modified ::onExit to remove the indicator that data was modified. This is not supported.
This commit is contained in:
parent
a9cf61c1d1
commit
5ce317bb48
3 changed files with 3 additions and 8 deletions
|
@ -136,13 +136,10 @@ void Hooks::onLaunch ()
|
|||
// Exit:
|
||||
// 0 Means: - all emitted non-JSON lines become footnote entries
|
||||
// non-0 Means: - all emitted non-JSON lines become error entries
|
||||
bool Hooks::onExit ()
|
||||
void Hooks::onExit ()
|
||||
{
|
||||
context.timer_hooks.start ();
|
||||
|
||||
// Status indicates whether hooks resulted in new/modified tasks.
|
||||
bool status = false;
|
||||
|
||||
std::vector <std::string> matchingScripts = scripts ("on-exit");
|
||||
std::vector <std::string>::iterator i;
|
||||
for (i = matchingScripts.begin (); i != matchingScripts.end (); ++i)
|
||||
|
@ -169,7 +166,6 @@ bool Hooks::onExit ()
|
|||
}
|
||||
|
||||
context.timer_hooks.stop ();
|
||||
return status;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue