SetInitialPinCommand: ensureDialogCreated() shouldn't be const
It's creating the dialog and assigning it to a member.