mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context
- Relocated Hooks::onLaunch call from the end of ::initialize to the beginning of ::run. - Added a TDB2::commit between ::dispatch and Hooks::onExit.
This commit is contained in:
parent
6dff1f36bf
commit
d290b8792b
1 changed files with 3 additions and 2 deletions
|
@ -205,7 +205,6 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
// First opportunity to run a hook script.
|
||||
hooks.initialize ();
|
||||
hooks.onLaunch ();
|
||||
}
|
||||
|
||||
catch (const std::string& message)
|
||||
|
@ -283,8 +282,10 @@ int Context::run ()
|
|||
|
||||
try
|
||||
{
|
||||
hooks.onLaunch ();
|
||||
rc = dispatch (output);
|
||||
hooks.onExit ();
|
||||
tdb2.commit (); // Harmless if called when nothing changed.
|
||||
hooks.onExit (); // No chance to update data.
|
||||
|
||||
std::stringstream s;
|
||||
s << "Perf "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue