The function is deactivated as the default factory setting and can be activated or deactivated using the center display.
Tap Settings in the Top view in the center display.
Tap .
Select Auto Close Sunroof Curtain to activate/deactivate.
Note
The sun curtain also closes when all windows are closed with keyless closing*.