From 78161b3a2cb152d7a18181104c6f4dd2d72833e1 Mon Sep 17 00:00:00 2001 From: joker-x Date: Sun, 13 Sep 2020 18:42:47 +0200 Subject: [PATCH] Added startMute and startDeaf as configuration options --- app/config.js | 4 +++- app/index.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/config.js b/app/config.js index d0847f4..10941c1 100644 --- a/app/config.js +++ b/app/config.js @@ -36,6 +36,8 @@ window.mumbleWebConfig = { '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 // General - 'theme': 'MetroMumbleLight' + 'theme': 'MetroMumbleLight', + 'startMute': false, + 'startDeaf': false } } diff --git a/app/index.js b/app/index.js index dde50db..7dba49a 100644 --- a/app/index.js +++ b/app/index.js @@ -302,8 +302,8 @@ class GlobalBindings { this.messageBox = ko.observable('') this.toolbarHorizontal = ko.observable(!this.settings.toolbarVertical) this.selected = ko.observable() - this.selfMute = ko.observable() - this.selfDeaf = ko.observable() + this.selfMute = ko.observable(this.config.defaults.startMute) + this.selfDeaf = ko.observable(this.config.defaults.startDeaf) this.selfMute.subscribe(mute => { if (voiceHandler) {