Added startMute and startDeaf as configuration options
This commit is contained in:
parent
e641906c87
commit
78161b3a2c
|
@ -36,6 +36,8 @@ window.mumbleWebConfig = {
|
||||||
'matrix': false, // enable Matrix Widget support (mostly auto-detected; implies 'joinDialog')
|
'matrix': false, // enable Matrix Widget support (mostly auto-detected; implies 'joinDialog')
|
||||||
'avatarurl': '', // download and set the user's Mumble avatar to the image at this URL
|
'avatarurl': '', // download and set the user's Mumble avatar to the image at this URL
|
||||||
// General
|
// General
|
||||||
'theme': 'MetroMumbleLight'
|
'theme': 'MetroMumbleLight',
|
||||||
|
'startMute': false,
|
||||||
|
'startDeaf': false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -302,8 +302,8 @@ class GlobalBindings {
|
||||||
this.messageBox = ko.observable('')
|
this.messageBox = ko.observable('')
|
||||||
this.toolbarHorizontal = ko.observable(!this.settings.toolbarVertical)
|
this.toolbarHorizontal = ko.observable(!this.settings.toolbarVertical)
|
||||||
this.selected = ko.observable()
|
this.selected = ko.observable()
|
||||||
this.selfMute = ko.observable()
|
this.selfMute = ko.observable(this.config.defaults.startMute)
|
||||||
this.selfDeaf = ko.observable()
|
this.selfDeaf = ko.observable(this.config.defaults.startDeaf)
|
||||||
|
|
||||||
this.selfMute.subscribe(mute => {
|
this.selfMute.subscribe(mute => {
|
||||||
if (voiceHandler) {
|
if (voiceHandler) {
|
||||||
|
|
Loading…
Reference in a new issue