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

fix: Make input selection aware of if "Show Monitor Sources" is checked #292

Merged

Conversation

TheDukeofErl
Copy link
Collaborator

Kind of a small corner case fix for a problem I noticed while working on a different ui problem. When Display Monitor Sources is unchecked and no mic is plugged in, if Filter Microphone is checked, Load NoiseTorch will be available with the monitor source as the "checked" element, even though it is hidden. This small modification to the check in inputSelection() fixes this bug.

Also removes a set of unnecessary parenthesis in an if.

Without this fix, having no mic connected and display monitor sources is
unchecked, clicking filter microphone results in the load button being
displayed, as the monitor source will be checked by default as the first
active device.
@TheDukeofErl TheDukeofErl changed the title fix: don't show "Load NoiseTorch" when monitor devices is unchecked and only a monitor device is available fix: Make input selection aware of if "Show Monitor Sources" is checked May 25, 2022
ui.go Outdated Show resolved Hide resolved
@ZyanKLee
Copy link
Contributor

works as expected

@ZyanKLee ZyanKLee merged commit aea4f46 into noisetorch:master May 26, 2022
@ZyanKLee ZyanKLee added this to the v0.12.0 milestone May 27, 2022
@TheDukeofErl TheDukeofErl deleted the bugfix/no-mic-mon-source-load branch June 4, 2022 17:19
@TheDukeofErl TheDukeofErl restored the bugfix/no-mic-mon-source-load branch June 4, 2022 17:19
@TheDukeofErl TheDukeofErl deleted the bugfix/no-mic-mon-source-load branch August 10, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants