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

VIALJS-112: Fixed issues with the timing of saving settings and the verify-sinks bg call. #194

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

c0deaddict
Copy link
Contributor

Purpose

Saving settings after changing redundant headset doesn't remove them immediately.

To reproduce: set a usb device as your audio device(s) in Vialer-js settings and save. Remove the device. You'll be redirected to the audio settings tab and a warning shows that the device is removed/invalid. Change to a different device. The redundant device should be removed on save immediately. What actually happens is that you have to save again, before the device is removed.

Approach

Settings weren't always saved when the bg:devices:verify-sinks event was emitted. Moved the emission of the event in the callback to solve it.

@c0deaddict c0deaddict requested a review from a user October 19, 2018 08:26
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Nice with the Chrome devtools integration!

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Nice Chrome devtools integration as well.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it! Nice devtools integration btw.

@c0deaddict c0deaddict merged commit 247acaf into develop Oct 22, 2018
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.

1 participant