Debug live engine dialog

This commit is contained in:
Loic Guegan 2022-03-01 09:16:13 +01:00
parent 973104f58c
commit 9cba705e66

View file

@ -63,9 +63,12 @@ void LiveEngineDialog::OnClose(wxCloseEvent &e) {
}
void LiveEngineDialog::SetFEN(std::string fen) {
StopEngine();
engine->position(fen);
StartEngine();
if (timer.IsRunning()) {
StopEngine();
StartEngine();
} else {
engine->position(fen);
}
}
void LiveEngineDialog::TogglePauseEngine(wxCommandEvent &event) {