Commit 9f997dca authored by Clément Stenac's avatar Clément Stenac

Don't make image when we are not interested in the item

parent 6adad42a
......@@ -135,9 +135,12 @@ void CtrlTree::onUpdate( Subject<VarTree, tree_update*> &rTree,
{
if( arg->i_type == 0 ) // Item update
{
if( arg->b_active_item && arg->b_visible )
if( arg->b_active_item )
{
autoScroll();
makeImage();
///\todo We should make image if we are visible in the view
makeImage();
}
}
/// \todo handle delete in a more clever way
else if ( arg->i_type == 1 ) // Global change or deletion
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment