The Opt-Out Toggle Button isn’t showing up, even for licensed users, because in resized() the code checks if the toggle button component isShowing(), and that might happes before the dialog is coming to screen.
PS: Another reason why opt-out is uncool