mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: Autoconnect when local checkbox not reflecting configuration
This commit is contained in:
parent
34f9a8bc40
commit
760fe18cc7
@ -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"];
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user