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

Toggle the sound notifications #1536

Merged
merged 3 commits into from
May 12, 2019
Merged

Toggle the sound notifications #1536

merged 3 commits into from
May 12, 2019

Conversation

adriantombu
Copy link
Contributor

This PR is related to the #1067 issue

As the notificaiton sounds seem a bit controversial, I guess the best way to content everybody would be to allow people to chose what they want, hence this little checkbox to toggle the sounds 😃

Personnally, I'm like @rjmill : sometime I need absolute silence, and sometime I need the notifications.

Anyways, I'm open for feedback 👍

@welcome
Copy link

welcome bot commented Jan 12, 2019

🙌 Thanks for opening this pull request! You're awesome.

<Checkbox
className='control'
checked={this.props.state.saved.prefs.soundNotifications}
label={'Activate the notification sounds'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I would prefer 'Enable notification sounds'.

But since it is both interaction sounds and notification sounds, maybe it should simply be 'Enable sounds'?

@@ -231,6 +250,9 @@ class PreferencesPage extends React.Component {
{this.setDefaultAppButton()}
</PreferencesSection>
{this.setStartupSection()}
<PreferencesSection title='Miscellaneous'>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should group the startup and sound options under a 'General' section instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, looks cleaner to me too 👍

@mathiasvr
Copy link
Contributor

@adriantombu Thanks for the changes! I took the liberty to add some migration handling to your branch as well.

Based on the previous feedback I also think it's fine to make this an option.

Copy link

@trujamal trujamal left a comment

Choose a reason for hiding this comment

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

Changes do not impede user functionality, and pass test.

Copy link
Member

@Borewit Borewit left a comment

Choose a reason for hiding this comment

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

toggle-sound-notification

@Borewit Borewit merged commit d0053dc into webtorrent:master May 12, 2019
@welcome
Copy link

welcome bot commented May 12, 2019

🎉 Congrats on getting your first pull request landed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants