diff --git a/manager/javascripts/dcsinstance.js b/manager/javascripts/dcsinstance.js index 9aa93fd1..ca9ca63c 100644 --- a/manager/javascripts/dcsinstance.js +++ b/manager/javascripts/dcsinstance.js @@ -190,7 +190,7 @@ class DCSInstance { this.gameMasterPasswordHash = config["authentication"]["gameMasterPassword"]; /* Read the new configurations added in v2.0.0 */ - if ( config["frontend"]["autoconnectWhenLocal"] !== undefined) + if (config["frontend"]["autoconnectWhenLocal"] !== undefined) this.autoconnectWhenLocal = config["frontend"]["autoconnectWhenLocal"]; if (config["frontend"]["audio"] !== undefined && config["frontend"]["audio"]["SRSPort"] !== undefined) this.SRSPort = config["audio"]["SRSPort"]; diff --git a/manager/javascripts/manager.js b/manager/javascripts/manager.js index 3bcbedb3..691bedc8 100644 --- a/manager/javascripts/manager.js +++ b/manager/javascripts/manager.js @@ -159,6 +159,7 @@ class Manager { if (this.getActiveInstance()) { this.setPort('frontend', this.getActiveInstance().frontendPort); this.setPort('backend', this.getActiveInstance().backendPort); + this.expertSettingsPage.getElement().querySelector(".autoconnect .checkbox").classList.toggle("checked", this.getActiveInstance().autoconnectWhenLocal) } }