Merge pull request #712 from torhve/soundnotify

Fix problem with saving of sound notify
This commit is contained in:
Lorenz Hübschle-Schneider 2015-12-18 14:05:28 +01:00
commit 5dc0b4df02

View file

@ -23,6 +23,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$scope.command = ''; $scope.command = '';
$scope.themes = ['dark', 'light']; $scope.themes = ['dark', 'light'];
// Initialise all our settings, this needs to include all settings
// or else they won't be saved to the localStorage.
settings.setDefaults({ settings.setDefaults({
'theme': 'dark', 'theme': 'dark',
'host': 'localhost', 'host': 'localhost',
@ -38,6 +40,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
'useFavico': true, 'useFavico': true,
'showtimestamp': true, 'showtimestamp': true,
'showtimestampSeconds': false, 'showtimestampSeconds': false,
'soundnotification': true,
'fontsize': '14px', 'fontsize': '14px',
'fontfamily': (utils.isMobileUi() ? 'sans-serif' : 'Inconsolata, Consolas, Monaco, Ubuntu Mono, monospace'), 'fontfamily': (utils.isMobileUi() ? 'sans-serif' : 'Inconsolata, Consolas, Monaco, Ubuntu Mono, monospace'),
'readlineBindings': false, 'readlineBindings': false,