0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 02:10:45 -05:00

Updated MenuNotificationManager to not constantly hit registry every second

This commit is contained in:
Chomp 2025-01-07 14:31:19 +00:00
parent a154153d77
commit 31baa1b113

View File

@ -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<string> whitelistedPlugins = new()
@ -98,8 +99,15 @@ namespace SPT.Custom.Utils
return;
}
if (_seenBetaMessage)
{
return;
}
ShowBetaMessage();
ShowReleaseNotes();
_seenBetaMessage = true;
}
// Show the beta message