From 94d5b9d6df2e1a75a3bbd0dc5a765268b6da537b Mon Sep 17 00:00:00 2001 From: Lisias T Date: Tue, 4 Jul 2023 05:46:10 -0300 Subject: [PATCH] Extending the period in which the CKAN Warning is issued to 30 days. Twice a month appears to be a bit too much. --- Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs b/Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs index 2c051eeb..df7ba9b8 100644 --- a/Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs +++ b/Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs @@ -24,6 +24,7 @@ namespace KSPe.InstallChecker.GUI.Dialogs { internal class CkanDetectedAdviseBox:TimedCommonBox { + private const int DAYS_BETWEEN_DIALOGS = 30; private static readonly string MSG = @"CKAN was detected in your KSP, but from March 2023 CKAN is not supported anymore by TweakScale, KSP-Recall et all. Any problems related to TweakScale, KSP-Recall and some other Add'Ons authored or maintained by a few authors should be reported to CKAN's maintainers directly. @@ -49,7 +50,7 @@ internal static void Show() #endif TimeSpan deltaT = DateTime.Now - Globals.Instance.LastCkanMessage; - if (!ModuleManagerTools.IsLoadedFromCache && deltaT.TotalDays > 15) + if (!ModuleManagerTools.IsLoadedFromCache && deltaT.TotalDays > DAYS_BETWEEN_DIALOGS) { Globals.Instance.HitCkanMessage(); GameObject go = new GameObject(typeof(CkanDetectedAdviseBox).FullName);