Skip to content

Commit

Permalink
Extending the period in which the CKAN Warning is issued to 30 days. …
Browse files Browse the repository at this point in the history
…Twice a month appears to be a bit too much.
  • Loading branch information
Lisias committed Jul 4, 2023
1 parent 191899a commit 94d5b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/InstallChecker/GUI/CkanDetectedAdviseBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down

0 comments on commit 94d5b9d

Please sign in to comment.