Fixed issue where the Copy button in Basic Bot is not toggled on/off properly.

If the Copy button is enabled, but there is no best attempt recorded, it will crash BasicBot / EmuHawk if it attempts to copy a null Log of the best attempt.
This commit is contained in:
tom_mai78101 2022-07-22 15:35:17 -04:00 committed by James Groom
parent d8fc32f1a8
commit 6eafdf7156
1 changed files with 2 additions and 0 deletions

View File

@ -958,6 +958,7 @@ namespace BizHawk.Client.EmuHawk
}
BestAttemptLogLabel.Text = sb.ToString();
PlayBestButton.Enabled = true;
btnCopyBestInput.Enabled = true;
}
else
{
@ -969,6 +970,7 @@ namespace BizHawk.Client.EmuHawk
BestTieBreak3Box.Text = "";
BestAttemptLogLabel.Text = "";
PlayBestButton.Enabled = false;
btnCopyBestInput.Enabled = false;
}
}