1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

GameOfLife: Clear the selected pattern when the game starts running

This commit is contained in:
Tim Ledbetter 2023-09-19 21:54:46 +01:00 committed by Andreas Kling
parent 4b48757586
commit 6eaae726fa

View file

@ -78,6 +78,12 @@ void BoardWidget::set_running(bool running)
if (running == m_running) if (running == m_running)
return; return;
if (m_selected_pattern) {
m_selected_pattern = nullptr;
if (on_pattern_selection_state_change)
on_pattern_selection_state_change();
}
m_running = running; m_running = running;
if (m_running) { if (m_running) {