Fix cheat editor showing "0x" prefix when not hex type

This commit is contained in:
James Groom 2024-03-06 16:30:14 +10:00 committed by GitHub
parent 5a55f04f1e
commit 8c3f857ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -254,9 +254,10 @@ namespace BizHawk.Client.EmuHawk
private void DisplayTypeDropDown_SelectedIndexChanged(object sender, EventArgs e)
{
ValueBox.Type =
CompareBox.Type =
Watch.StringToDisplayType(DisplayTypeDropDown.SelectedItem.ToString());
var newDisp Watch.StringToDisplayType(DisplayTypeDropDown.SelectedItem.ToString()); //TODO use Tag or Index
ValueBox.Type = CompareBox.Type = newDisp;
ValueHexIndLabel.Text = CompareHexIndLabel.Text = newDisp is WatchDisplayType.Hex ? HexInd : string.Empty; //TODO "0b" for binary
// NOT writing to `_cheat`, the "Override" button handles that
}
private void AddButton_Click(object sender, EventArgs e)