From 04f7acb68a2607fea989e030a891783c48d90efe Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 19 May 2017 22:46:51 +0900 Subject: [PATCH] Add setting checkbox to toggle debug logs --- .../Overlays/Settings/Sections/Debug/GeneralSettings.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.cs b/osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.cs index 9fbb4011b7..c0ee478b37 100644 --- a/osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.cs +++ b/osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.cs @@ -12,7 +12,7 @@ public class GeneralSettings : SettingsSubsection protected override string Header => "General"; [BackgroundDependencyLoader] - private void load(FrameworkDebugConfigManager config) + private void load(FrameworkDebugConfigManager config, FrameworkConfigManager frameworkConfig) { Children = new Drawable[] { @@ -20,6 +20,11 @@ private void load(FrameworkDebugConfigManager config) { LabelText = "Bypass caching", Bindable = config.GetBindable(FrameworkDebugConfig.BypassCaching) + }, + new SettingsCheckbox + { + LabelText = "Debug logs", + Bindable = frameworkConfig.GetBindable(FrameworkSetting.ShowLogOverlay) } }; }