Skip to content

Commit

Permalink
connection-settings: add auto join option to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Apr 18, 2016
1 parent c88b379 commit 8e9d1f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/views/connection-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Settings.prototype.onsave = function onsave(e, settings) {
, 'part.message': $('part.message').value
, 'persist.password': $('persist.password').checked
, 'messages.limit': $('messages.limit').value
, 'channel.join.auto': $('channel.join.auto').checked
}

debug('opts', opts)
Expand Down Expand Up @@ -97,6 +98,11 @@ Settings.prototype.render = function render(settings) {
, text: 'Store password in keychain'
, checked: settings.get('persist.password')
})
, checkbox({
id: 'channel.join.auto'
, text: 'Join channels on connect'
, checked: settings.get('channel.join.auto')
})
, group(
'messages.limit'
, 'number'
Expand Down

0 comments on commit 8e9d1f4

Please sign in to comment.