Fix outline being called too often

Outline can be pretty resource intensive in some case (e.g. with complex import tree) 
This pull request makes sure outline is called only when the outline view is active. With current behavior, outline view also is being updated when directory view is active. 
Cheers,
C.