mirror of https://github.com/PCSX2/pcsx2.git
[skip ci] gsdumpgui: Properly disable/grey out some debug options based on Debug Mode check.
This commit is contained in:
parent
c6fcf0aaab
commit
fe8793081a
|
@ -194,6 +194,7 @@ namespace GSDumpGUI
|
||||||
frmMain.chkDebugMode.Checked = (Boolean)Mess.Parameters[0];
|
frmMain.chkDebugMode.Checked = (Boolean)Mess.Parameters[0];
|
||||||
|
|
||||||
frmMain.lblGif.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.lblGif.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
|
frmMain.lblContent.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
frmMain.btnRunToSelection.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.btnRunToSelection.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
frmMain.treTreeView.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.treTreeView.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
frmMain.btnStep.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.btnStep.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
|
@ -201,7 +202,10 @@ namespace GSDumpGUI
|
||||||
frmMain.cmdGoToNextVSync.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.cmdGoToNextVSync.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
frmMain.treeGifPacketContent.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.treeGifPacketContent.Enabled = frmMain.chkDebugMode.Checked;
|
||||||
if (frmMain.chkDebugMode.Checked == false)
|
if (frmMain.chkDebugMode.Checked == false)
|
||||||
|
{
|
||||||
|
frmMain.treeGifPacketContent.Nodes.Clear();
|
||||||
frmMain.treTreeView.Nodes.Clear();
|
frmMain.treTreeView.Nodes.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
}), new object[] { null });
|
}), new object[] { null });
|
||||||
break;
|
break;
|
||||||
|
@ -458,14 +462,17 @@ namespace GSDumpGUI
|
||||||
if (frmMain.lstProcesses.SelectedIndex == -1)
|
if (frmMain.lstProcesses.SelectedIndex == -1)
|
||||||
{
|
{
|
||||||
frmMain.chkDebugMode.Checked = false;
|
frmMain.chkDebugMode.Checked = false;
|
||||||
frmMain.lblGif.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.chkDebugMode.Enabled = false;
|
||||||
frmMain.btnRunToSelection.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.lblGif.Enabled = false;
|
||||||
frmMain.treTreeView.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.lblContent.Enabled = false;
|
||||||
frmMain.btnStep.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.btnRunToSelection.Enabled = false;
|
||||||
frmMain.cmdGoToStart.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.treTreeView.Enabled = false;
|
||||||
frmMain.cmdGoToNextVSync.Enabled = frmMain.chkDebugMode.Checked;
|
frmMain.btnStep.Enabled = false;
|
||||||
frmMain.treTreeView.Nodes.Clear();
|
frmMain.cmdGoToStart.Enabled = false;
|
||||||
|
frmMain.cmdGoToNextVSync.Enabled = false;
|
||||||
|
frmMain.treeGifPacketContent.Enabled = false;
|
||||||
frmMain.treeGifPacketContent.Nodes.Clear();
|
frmMain.treeGifPacketContent.Nodes.Clear();
|
||||||
|
frmMain.treTreeView.Nodes.Clear();
|
||||||
}
|
}
|
||||||
}), new object[] { null});
|
}), new object[] { null});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue