There's a locknut on the indicator chain. When you have it set against a properly adjusted barrel on the cable, you can disconnect the barrel and the position of the locknut will retain your adjustment.
When you reinstall the wheel after repair, simply tighten the barrel until it seats against the locknut and the adjustment will be the same as it was before you removed the wheel.