Actually bind debug tab to debug mode toggle.

This commit is contained in:
Ottermandias 2022-06-07 15:37:36 +02:00
parent 2aed252820
commit 765da6d518
2 changed files with 2 additions and 6 deletions

View file

@ -27,17 +27,13 @@ public partial class ConfigWindow
#if DEBUG
private const string DebugVersionString = "(Debug)";
private const bool DefaultVisibility = true;
#else
private const string DebugVersionString = "(Release)";
private const bool DefaultVisibility = false;
#endif
public bool DebugTabVisible = DefaultVisibility;
public void Draw()
{
if( !DebugTabVisible )
if( !Penumbra.Config.DebugMode )
{
return;
}

View file

@ -30,7 +30,7 @@ public partial class ConfigWindow
// Draw a tab to iterate over the main resource maps and see what resources are currently loaded.
public void Draw()
{
if( !_window._debugTab.DebugTabVisible )
if( !Penumbra.Config.DebugMode )
{
return;
}