Fix hiding of view mode button, broken in 58219b1e

Signed-off-by: Alex Coles <alex@alexbcoles.com>