mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 05:30:43 -05:00
Updated MenuNotificationManager
to not constantly hit registry every second
This commit is contained in:
parent
a154153d77
commit
31baa1b113
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user