Just a thought but I have seen aircraft switch to standby, change the code and then re-enable the transponder. This is may be done to ensure any incorrect transition code is not transmitted.
Been answered before, so I suspect this will b yet another short lived answer but....
No need to switch the Xpdr to standby on modern kit of the type installed on the T7, you just punch in the new code..