mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
GameOfLife: Clear the selected pattern when the game starts running
This commit is contained in:
parent
4b48757586
commit
6eaae726fa
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/6eaae726fa Pull-request: https://github.com/SerenityOS/serenity/pull/21163
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user