From 89f137680e61c780d6079d7fb610663500b2582c Mon Sep 17 00:00:00 2001 From: Sinai Date: Wed, 31 Mar 2021 02:02:12 +1100 Subject: [PATCH] Update DebugConsole.cs --- src/UI/Main/DebugConsole.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/Main/DebugConsole.cs b/src/UI/Main/DebugConsole.cs index c803249..f305ea1 100644 --- a/src/UI/Main/DebugConsole.cs +++ b/src/UI/Main/DebugConsole.cs @@ -220,8 +220,10 @@ namespace UnityExplorer.UI.Main ConfigManager.Handler.SaveConfig(); }); + ConfigManager.Log_Unity_Debug.OnValueChanged += (bool val) => { unityToggle.isOn = val; }; + unityToggle.isOn = LogUnity; - unityToggleText.text = "Print Unity Debug?"; + unityToggleText.text = "Log Unity Debug?"; unityToggleText.alignment = TextAnchor.MiddleLeft; UIFactory.SetLayoutElement(unityToggleObj, minWidth: 170, flexibleWidth: 0);