ui/collapsingnav: only activate/deactivate if needed