Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling BT executes when Surface Mic selected #4

Open
haochiz opened this issue Jan 20, 2021 · 1 comment
Open

Toggling BT executes when Surface Mic selected #4

haochiz opened this issue Jan 20, 2021 · 1 comment
Labels
question Further information is requested

Comments

@haochiz
Copy link
Collaborator

haochiz commented Jan 20, 2021

Toggling BT without available device to connect to also disables audio button (until restarting the note or resetting mic option). Better to disable toggling BT processes when surface mic is selected?

@haochiz haochiz added the question Further information is requested label Jan 20, 2021
@haochiz
Copy link
Collaborator Author

haochiz commented Jan 26, 2021

The reason Toggle BT button disables the audio button is SetBTUIOnInit(initialized) sets audioButton.IsEnabled to initialized.
changeSpeechEngineState_BT() which is called when Toggle BT is clicked attempts to connect BT if BT is not connected, then calls SetBTUIOnInit to update UI elements status. If BT cannot be connected, SetBTUIOnInit will set audioButton.IsEnabled to false which disables the button until the state is reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant