- Potential fix for tells getting stuck

- Allow debugger use outside of debug builds
This commit is contained in:
Infi
2024-12-23 04:48:40 +01:00
parent 70971d7b8a
commit f6dd0359e7
5 changed files with 10 additions and 8 deletions
+1 -5
View File
@@ -14,7 +14,7 @@ public class DebuggerWindow : Window
private readonly Plugin Plugin;
private readonly ChatLogWindow ChatLogWindow;
public DebuggerWindow(Plugin plugin) : base($"Debugger###chat2-debugger")
public DebuggerWindow(Plugin plugin) : base("Debugger###chat2-debugger")
{
Plugin = plugin;
ChatLogWindow = plugin.ChatLogWindow;
@@ -28,16 +28,12 @@ public class DebuggerWindow : Window
RespectCloseHotkey = false;
DisableWindowSounds = true;
#if DEBUG
Plugin.Commands.Register("/chat2Debugger", showInHelp: false).Execute += Toggle;
#endif
}
public void Dispose()
{
#if DEBUG
Plugin.Commands.Register("/chat2Debugger", showInHelp: false).Execute -= Toggle;
#endif
}
private void Toggle(string _, string __) => Toggle();