The defendant shall be entitled to be present, if he wishes it, on the hearing of any appeal to the Court of Appeal under Part 2 of the Act to which he is a party, although he may be in custody.
But if the defendant is in custody, he shall not be entitled to be present—
where the appeal is on some ground involving a question of law alone; or
on an application for leave to appeal; or
on any proceedings preliminary or incidental to an appeal,
unless the Court of Appeal gives him leave to be present.