Always pass a DC object in the `toggleVisibility` callback (see #7314)