mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
chore: replace IsDebugging check on PluginInterface with Debugger.IsAttached
Makes a bit more sense api-wise
This commit is contained in:
parent
96ed22534c
commit
c901ab4248
1 changed files with 2 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
@ -138,11 +139,7 @@ namespace Dalamud.Plugin
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether Dalamud is running in Debug mode or the /xldev menu is open. This can occur on release builds.
|
/// Gets a value indicating whether Dalamud is running in Debug mode or the /xldev menu is open. This can occur on release builds.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if DEBUG
|
public bool IsDebugging => Debugger.IsAttached;
|
||||||
public bool IsDebugging => true;
|
|
||||||
#else
|
|
||||||
public bool IsDebugging => Service<DalamudInterface>.GetNullable() is {IsDevMenuOpen: true}; // Can be null during boot
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current UI language in two-letter iso format.
|
/// Gets the current UI language in two-letter iso format.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue