From 31baa1b113236085b59c10d33f4c69c28f216190 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 7 Jan 2025 14:31:19 +0000 Subject: [PATCH] Updated `MenuNotificationManager` to not constantly hit registry every second --- project/SPT.Custom/Utils/MenuNotificationManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project/SPT.Custom/Utils/MenuNotificationManager.cs b/project/SPT.Custom/Utils/MenuNotificationManager.cs index bfeb1b8..450f196 100644 --- a/project/SPT.Custom/Utils/MenuNotificationManager.cs +++ b/project/SPT.Custom/Utils/MenuNotificationManager.cs @@ -15,6 +15,7 @@ namespace SPT.Custom.Utils { public class MenuNotificationManager : MonoBehaviour { + private static bool _seenBetaMessage = false; public static string sptVersion; public static string commitHash; internal static HashSet whitelistedPlugins = new() @@ -98,8 +99,15 @@ namespace SPT.Custom.Utils return; } + if (_seenBetaMessage) + { + return; + } + ShowBetaMessage(); ShowReleaseNotes(); + + _seenBetaMessage = true; } // Show the beta message