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:
parent
d8fc32f1a8
commit
6eafdf7156
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue