Restore tree selection after update