This commit is contained in:
Auric Vente 2024-07-28 23:51:28 -06:00
parent 67c62f7b0b
commit 824674922f
1 changed files with 2 additions and 2 deletions

View File

@ -596,10 +596,10 @@ class Game:
animation.setEndValue(1) animation.setEndValue(1)
animation.setEasingCurve(QEasingCurve.InOutQuad) animation.setEasingCurve(QEasingCurve.InOutQuad)
def on_animation_finished() -> None: def on_finish() -> None:
item.setGraphicsEffect(None) item.setGraphicsEffect(None)
Game.animations.remove(animation) Game.animations.remove(animation)
animation.finished.connect(on_animation_finished) animation.finished.connect(on_finish)
Game.animations.append(animation) Game.animations.append(animation)
return animation return animation