mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Solitaire: Stop timer if new game animation is running
Starting a new game before the animation had finished caused a crash since it never stopped the timer before starting a new one. Fixes #7222
This commit is contained in:
parent
3ee092cd0c
commit
198a4e2a3c
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ void Game::stop_game_over_animation()
|
|||
|
||||
void Game::setup(Mode mode)
|
||||
{
|
||||
if (m_new_game_animation)
|
||||
stop_timer();
|
||||
|
||||
stop_game_over_animation();
|
||||
m_mode = mode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue