Skip to content

Commit fec0fbb

Browse files
Cleanup browser start settings
1 parent 00f6c94 commit fec0fbb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ASCOM.Alpaca.Simulators/Pages/Setup.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
{
397397
get;
398398
set;
399-
} = ServerSettings.AutoStartBrowser;
399+
} = ServerSettings.StartBrowserAtStart;
400400

401401
ConsoleDisplayOption ConsoleDisplay
402402
{
@@ -553,7 +553,7 @@
553553

554554
ServerSettings.Location = Location;
555555

556-
ServerSettings.AutoStartBrowser = StartBrowser;
556+
ServerSettings.StartBrowserAtStart = StartBrowser;
557557

558558
if (ServerSettings.ConsoleDisplayDefault != ConsoleDisplay)
559559
{

ASCOM.Alpaca.Simulators/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private static bool ProcessArgs(string[] args, bool existing_instance)
342342
if (args?.Any(str => str.Contains("--set-no-browser")) ?? false)
343343
{
344344
WriteAndLog("Turning off auto start browser");
345-
ServerSettings.AutoStartBrowser = false;
345+
ServerSettings.StartBrowserAtStart = false;
346346
WriteAndLog("Auto start browser is off");
347347
return true;
348348
}

ASCOM.Alpaca.Simulators/ServerSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,19 @@ internal static string Location
165165
}
166166
}
167167

168-
internal static bool AutoStartBrowser
168+
internal static bool StartBrowserAtStart
169169
{
170170
get
171171
{
172-
if (bool.TryParse(Profile.GetValue("AutoStartBrowser", false.ToString()), out bool result))
172+
if (bool.TryParse(Profile.GetValue("StartBrowserAtStart", false.ToString()), out bool result))
173173
{
174174
return result;
175175
}
176176
return false;
177177
}
178178
set
179179
{
180-
Profile.WriteValue("AutoStartBrowser", value.ToString());
180+
Profile.WriteValue("StartBrowserAtStart", value.ToString());
181181
}
182182
}
183183

ASCOM.Alpaca.Simulators/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApp
8888

8989
try
9090
{
91-
if (ServerSettings.AutoStartBrowser) //AutoStart Browser
91+
if (ServerSettings.StartBrowserAtStart) //AutoStart Browser
9292
{
9393
Program.StartBrowser(ServerSettings.ServerPort);
9494
}

0 commit comments

Comments
 (0)