The doors are closed when gear is down then recycle on retraction.
Being a fighter pilot where our gear doors stay open until the gear retracts. . .I guess I wasn’t paying attention to heavies.
Just a reminder, there are two types of aircraft, fighters and targets. Hah.