Make the debugger command depend on debug build

This commit is contained in:
Infi
2024-04-10 17:11:46 +02:00
parent 9feb70d262
commit 486ece07d2
+4
View File
@@ -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();