Issue #2092477 by rrrob, DamienMcKenna: Make the pane title use the current view mode.