mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 00:07:53 +01:00
Actually bind debug tab to debug mode toggle.
This commit is contained in:
parent
2aed252820
commit
765da6d518
2 changed files with 2 additions and 6 deletions
|
|
@ -27,17 +27,13 @@ public partial class ConfigWindow
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
private const string DebugVersionString = "(Debug)";
|
private const string DebugVersionString = "(Debug)";
|
||||||
private const bool DefaultVisibility = true;
|
|
||||||
#else
|
#else
|
||||||
private const string DebugVersionString = "(Release)";
|
private const string DebugVersionString = "(Release)";
|
||||||
private const bool DefaultVisibility = false;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public bool DebugTabVisible = DefaultVisibility;
|
|
||||||
|
|
||||||
public void Draw()
|
public void Draw()
|
||||||
{
|
{
|
||||||
if( !DebugTabVisible )
|
if( !Penumbra.Config.DebugMode )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// Draw a tab to iterate over the main resource maps and see what resources are currently loaded.
|
||||||
public void Draw()
|
public void Draw()
|
||||||
{
|
{
|
||||||
if( !_window._debugTab.DebugTabVisible )
|
if( !Penumbra.Config.DebugMode )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue