However we can't use get_main_n_tasks() here for a few reasons. First, it shows the total number of tasks being *displayed* so as you click on things the number varies and doesn't always reflect the All tasks count. Second, it's a routine that uses browser functionality, whereas we want tagtree.py to work independently of the browser. And third, it doesn't fix the notags case.
The title bar updates the count by calling:
count = self.req. get_main_ n_tasks( )
Whereas the tagtree.py code is using this call:
return self.active_ workview_ filtered_ tree.get_ nodes_count( )
However we can't use get_main_n_tasks() here for a few reasons. First, it shows the total number of tasks being *displayed* so as you click on things the number varies and doesn't always reflect the All tasks count. Second, it's a routine that uses browser functionality, whereas we want tagtree.py to work independently of the browser. And third, it doesn't fix the notags case.