1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

Solitaire: Clear selection when starting new game

Fixes #9218.
This commit is contained in:
Jamie Mansfield 2021-08-05 11:12:18 +01:00 committed by Gunnar Beutner
parent 22aeec1218
commit 506363c08d

View file

@ -175,6 +175,9 @@ void Game::setup(Mode mode)
for (uint8_t i = 0; i < 200; ++i)
m_new_deck.append(m_new_deck.take(get_random_uniform(m_new_deck.size())));
m_focused_stack = nullptr;
m_focused_cards.clear();
m_new_game_animation = true;
start_timer(s_timer_interval_ms);
update();