Fix argument destructuring to make text settings menu work.
Fix argument destructuring to make text settings menu work.

Fixes #9042
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab