From d4c88052d920b83e8926b2972f88f13c3ac27c2a Mon Sep 17 00:00:00 2001 From: rjindael Date: Mon, 31 Jul 2023 02:54:46 -0700 Subject: [PATCH] fix: better healthcheck boolean logic --- Kiseki.Launcher.Windows/Launcher.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kiseki.Launcher.Windows/Launcher.cs b/Kiseki.Launcher.Windows/Launcher.cs index a8f7398..47e35b8 100644 --- a/Kiseki.Launcher.Windows/Launcher.cs +++ b/Kiseki.Launcher.Windows/Launcher.cs @@ -13,12 +13,11 @@ namespace Kiseki.Launcher.Windows Directory.CreateDirectory(Directories.Base); int response = await Web.CheckHealth(); - if (response != Web.RESPONSE_SUCCESS || response != Web.RESPONSE_MAINTENANCE) + if (response != Web.RESPONSE_SUCCESS) { if (response != Web.RESPONSE_MAINTENANCE) { // The Kiseki website is either down or we can't connect to the internet. - // TODO: This is a strange scenario where we need to display an error outside of the controller. Can we do this within the page instead of a message box? MessageBox.Show($"Failed to connect to the {Constants.ProjectName} website. Please check your internet connection.", Constants.ProjectName, MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(0); }