Skip to content

Commit

Permalink
Use ConfigEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhauled committed Aug 8, 2024
1 parent 74e731d commit a8a1bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BepInEx.MessageCenter/MessageCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public partial class MessageCenter : BaseUnityPlugin
private static float _showCounter;
private static string _shownLogText = string.Empty;

public static ConfigWrapper<bool> Enabled { get; private set; }
public static ConfigEntry<bool> Enabled { get; private set; }

public MessageCenter()
{
Enabled = Config.Wrap("General", "Show messages in UI", "Allow plugins to show on screen messages", true);
Enabled = Config.Bind("General", "Show messages in UI", true, "Allow plugins to show on screen messages");
Logging.Logger.Listeners.Add(new MessageLogListener());
}

Expand Down

0 comments on commit a8a1bba

Please sign in to comment.