I'm having problems calling commands from taskbrowser. When I call myTask.myCommand() it returns true and the command code executes fine. Afterwards the updateHook finishes processing the command and sets myCommandDone variable to true. However, whenever I press Enter I can see how the completion condition (which checks myCommandDone) is checked, but it always returns false, as if myCommandDone was not set to true.
I've read something about different copies of the command, done depending of the caller, and I guess this has something to do with my problem, but I can't figure it out.
By the way, myCommandDone is a member variable of myTask, as well as myCommand and it's two associated functions.
Any guess of what might I be doing wrong?