The function is deactivated as the default factory setting and can be activated or deactivated using the center display.
Tap
in the center display and navigate to the settings for automatic closing and opening of the sun curtain.

Note
The sun curtain also closes when all windows are closed with keyless closing*.