Skip to content

Toggle the sound notifications - #1536

Merged
Borewit merged 3 commits into
webtorrent:masterfrom
adriantombu:feature/sound-option
May 12, 2019
Merged

Borewit merged 3 commits into
webtorrent:masterfrom
adriantombu:feature/sound-option

Conversation

@adriantombu

Copy link
Copy Markdown
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

welcome Bot commented Jan 12, 2019

Copy link
Copy Markdown

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

Comment thread src/renderer/pages/preferences-page.js Outdated
<Checkbox
className='control'
checked={this.props.state.saved.prefs.soundNotifications}
label={'Activate the notification sounds'}

Copy link
Copy Markdown
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'?

Comment thread src/renderer/pages/preferences-page.js Outdated
{this.setDefaultAppButton()}
</PreferencesSection>
{this.setStartupSection()}
<PreferencesSection title='Miscellaneous'>

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@trujamal trujamal left a comment

Copy link
Copy Markdown

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.

@Borewit Borewit left a comment

Copy link
Copy Markdown
Member

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

welcome Bot commented May 12, 2019

Copy link
Copy Markdown

🎉 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