mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 17:25:04 +00:00
GameOfLife: Clear the selected pattern when the game starts running
This commit is contained in:
committed by
Andreas Kling
parent
4b48757586
commit
6eaae726fa
@@ -78,6 +78,12 @@ void BoardWidget::set_running(bool running)
|
||||
if (running == m_running)
|
||||
return;
|
||||
|
||||
if (m_selected_pattern) {
|
||||
m_selected_pattern = nullptr;
|
||||
if (on_pattern_selection_state_change)
|
||||
on_pattern_selection_state_change();
|
||||
}
|
||||
|
||||
m_running = running;
|
||||
|
||||
if (m_running) {
|
||||
|
||||
Reference in New Issue
Block a user