An odd, superfluous barline has appeared in a score. The only thing I can see which might be causing this confusing notation, is the change of an unpitched percussion instrument to a pitched one for a single percussion player.
I’ve tried everything to remove this barline, but it won’t disappear.
Dorico is treating the switch to pitched percussion like a key change. Does the Glock enter at the repeat? If not, you can add a dummy note to the Cymbol after the repeat and hide it so the Key Sig for the Glock appears at a normal barline.