Changed function name handleSoundNotificationsChange
This commit is contained in:
@@ -27,8 +27,8 @@ class PreferencesPage extends React.Component {
|
|||||||
this.handleStartupChange =
|
this.handleStartupChange =
|
||||||
this.handleStartupChange.bind(this)
|
this.handleStartupChange.bind(this)
|
||||||
|
|
||||||
this.handlesoundNotificationsChange =
|
this.handleSoundNotificationsChange =
|
||||||
this.handlesoundNotificationsChange.bind(this)
|
this.handleSoundNotificationsChange.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadPathSelector () {
|
downloadPathSelector () {
|
||||||
@@ -213,12 +213,12 @@ class PreferencesPage extends React.Component {
|
|||||||
className='control'
|
className='control'
|
||||||
checked={this.props.state.saved.prefs.soundNotifications}
|
checked={this.props.state.saved.prefs.soundNotifications}
|
||||||
label={'Enable sounds'}
|
label={'Enable sounds'}
|
||||||
onCheck={this.handlesoundNotificationsChange} />
|
onCheck={this.handleSoundNotificationsChange} />
|
||||||
</Preference>
|
</Preference>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
handlesoundNotificationsChange (e, isChecked) {
|
handleSoundNotificationsChange (e, isChecked) {
|
||||||
dispatch('updatePreferences', 'soundNotifications', isChecked)
|
dispatch('updatePreferences', 'soundNotifications', isChecked)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user