Skip to content
Permalink
Browse files

[skip ci] gsdumpgui: Properly disable/grey out some debug options bas…

…ed on Debug Mode check.
  • Loading branch information...
lightningterror committed May 23, 2019
1 parent c6fcf0a commit fe8793081a135e23ecaeeecad67069d26be90063
Showing with 14 additions and 7 deletions.
  1. +14 −7 tools/GSDumpGUI/Core/Program.cs
@@ -194,14 +194,18 @@ static void Server_OnClientMessageReceived(BaseMessageServer server, BaseMessage
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;
frmMain.cmdGoToStart.Enabled = frmMain.chkDebugMode.Checked;
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 @@ private static void RefreshList(bool SelectLast)
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});
}

0 comments on commit fe87930

Please sign in to comment.
You can’t perform that action at this time.