fix: use new Web.IsConnected determination
This commit is contained in:
parent
48b320c054
commit
9954b5db61
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue