From fe8793081a135e23ecaeeecad67069d26be90063 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Thu, 23 May 2019 17:29:13 +0200 Subject: [PATCH] [skip ci] gsdumpgui: Properly disable/grey out some debug options based on Debug Mode check. --- tools/GSDumpGUI/Core/Program.cs | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/tools/GSDumpGUI/Core/Program.cs b/tools/GSDumpGUI/Core/Program.cs index 5db3d08ed0..0b90f7ab62 100644 --- a/tools/GSDumpGUI/Core/Program.cs +++ b/tools/GSDumpGUI/Core/Program.cs @@ -194,6 +194,7 @@ namespace GSDumpGUI frmMain.chkDebugMode.Checked = (Boolean)Mess.Parameters[0]; frmMain.lblGif.Enabled = frmMain.chkDebugMode.Checked; + frmMain.lblContent.Enabled = frmMain.chkDebugMode.Checked; frmMain.btnRunToSelection.Enabled = frmMain.chkDebugMode.Checked; frmMain.treTreeView.Enabled = frmMain.chkDebugMode.Checked; frmMain.btnStep.Enabled = frmMain.chkDebugMode.Checked; @@ -201,7 +202,10 @@ namespace GSDumpGUI frmMain.cmdGoToNextVSync.Enabled = frmMain.chkDebugMode.Checked; frmMain.treeGifPacketContent.Enabled = frmMain.chkDebugMode.Checked; if (frmMain.chkDebugMode.Checked == false) + { + frmMain.treeGifPacketContent.Nodes.Clear(); frmMain.treTreeView.Nodes.Clear(); + } }), new object[] { null }); break; @@ -458,14 +462,17 @@ namespace GSDumpGUI if (frmMain.lstProcesses.SelectedIndex == -1) { frmMain.chkDebugMode.Checked = false; - frmMain.lblGif.Enabled = frmMain.chkDebugMode.Checked; - frmMain.btnRunToSelection.Enabled = frmMain.chkDebugMode.Checked; - frmMain.treTreeView.Enabled = frmMain.chkDebugMode.Checked; - frmMain.btnStep.Enabled = frmMain.chkDebugMode.Checked; - frmMain.cmdGoToStart.Enabled = frmMain.chkDebugMode.Checked; - frmMain.cmdGoToNextVSync.Enabled = frmMain.chkDebugMode.Checked; - frmMain.treTreeView.Nodes.Clear(); + frmMain.chkDebugMode.Enabled = false; + frmMain.lblGif.Enabled = false; + frmMain.lblContent.Enabled = false; + frmMain.btnRunToSelection.Enabled = false; + frmMain.treTreeView.Enabled = false; + frmMain.btnStep.Enabled = false; + frmMain.cmdGoToStart.Enabled = false; + frmMain.cmdGoToNextVSync.Enabled = false; + frmMain.treeGifPacketContent.Enabled = false; frmMain.treeGifPacketContent.Nodes.Clear(); + frmMain.treTreeView.Nodes.Clear(); } }), new object[] { null}); }