fix: race condition in DPI.IsDebugging during plugin load

This commit is contained in:
goaaats 2021-12-26 09:06:23 +01:00
parent 264c85b0dc
commit 6758006c04
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -141,7 +141,7 @@ namespace Dalamud.Plugin
#if DEBUG
public bool IsDebugging => true;
#else
public bool IsDebugging => Service<DalamudInterface>.Get().IsDevMenuOpen;
public bool IsDebugging => Service<DalamudInterface>.GetNullable() is {IsDevMenuOpen: true}; // Can be null during boot
#endif
/// <summary>