From 486ece07d2a61afb4cacef7078426b0237cb4d73 Mon Sep 17 00:00:00 2001 From: Infi Date: Wed, 10 Apr 2024 17:11:46 +0200 Subject: [PATCH] Make the debugger command depend on debug build --- ChatTwo/Ui/SeStringDebugger.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChatTwo/Ui/SeStringDebugger.cs b/ChatTwo/Ui/SeStringDebugger.cs index 06cc665..74664e7 100644 --- a/ChatTwo/Ui/SeStringDebugger.cs +++ b/ChatTwo/Ui/SeStringDebugger.cs @@ -22,12 +22,16 @@ public class SeStringDebugger : Window MaximumSize = new Vector2(float.MaxValue, float.MaxValue) }; + #if DEBUG Plugin.Commands.Register("/chat2Debugger").Execute += Toggle; + #endif } public void Dispose() { + #if DEBUG Plugin.Commands.Register("/chat2Debugger").Execute -= Toggle; + #endif } private void Toggle(string _, string __) => Toggle();