From c901ab424842b9e8bb346f5605ee4402cd9aaf57 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Mon, 25 Apr 2022 23:39:59 +0200 Subject: [PATCH] chore: replace IsDebugging check on PluginInterface with Debugger.IsAttached Makes a bit more sense api-wise --- Dalamud/Plugin/DalamudPluginInterface.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index 2be81eaf5..4e2ecc6c6 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; @@ -138,11 +139,7 @@ namespace Dalamud.Plugin /// /// Gets a value indicating whether Dalamud is running in Debug mode or the /xldev menu is open. This can occur on release builds. /// -#if DEBUG - public bool IsDebugging => true; -#else - public bool IsDebugging => Service.GetNullable() is {IsDevMenuOpen: true}; // Can be null during boot -#endif + public bool IsDebugging => Debugger.IsAttached; /// /// Gets the current UI language in two-letter iso format.