Entering double bar line removes start-repeat, and vice-versa

I want a double bar line at the end of the measure containing “D.S. al Coda”.

If I add one, Dorico removes the start-repeat at the coda.

If I then add back the start-repeat, Dorico removes the double bar line.

Any ideas how I can achieve the desired result?

I believe this is an option in Engraving Options under Barlines.

That’s it!

Thanks, musicmaven!