View menu (alt+v) > Treebar (r)

~ Edit ~
Actually I don't think you can disable the treebar in compact mode.