fix: use new Web.IsConnected determination

This commit is contained in:
rjindael 2023-09-10 02:38:23 -07:00
parent 48b320c054
commit 9954b5db61
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 4 additions and 5 deletions

View File

@ -19,8 +19,7 @@ internal static class Program
Paths.Initialize(Path.Combine(Paths.LocalAppData, Constants.PROJECT_NAME)); Paths.Initialize(Path.Combine(Paths.LocalAppData, Constants.PROJECT_NAME));
} }
bool isConnected = Web.Initialize(); if (!Web.IsConnected && Web.IsInMaintenance)
if (!isConnected && Web.IsInMaintenance)
{ {
// Try licensing this launcher and attempt to connect again // Try licensing this launcher and attempt to connect again
if (!Bootstrapper.License()) if (!Bootstrapper.License())
@ -28,10 +27,10 @@ internal static class Program
return; return;
} }
isConnected = Web.Initialize(); Web.Initialize();
} }
if (!isConnected) if (!Web.IsConnected)
{ {
if (Web.IsInMaintenance) if (Web.IsInMaintenance)
{ {
@ -54,7 +53,7 @@ internal static class Program
// Nothing for us to do :P // Nothing for us to do :P
Process.Start(new ProcessStartInfo() Process.Start(new ProcessStartInfo()
{ {
FileName = Web.Url("/games"), FileName = Web.FormatUrl("/games"),
UseShellExecute = true UseShellExecute = true
}); });