diff --git a/cromulant/game.py b/cromulant/game.py index 56863e4..6e732dc 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -595,6 +595,11 @@ class Game: animation.setStartValue(0) animation.setEndValue(1) animation.setEasingCurve(QEasingCurve.InOutQuad) - animation.finished.connect(lambda: Game.animations.remove(animation)) + + def on_animation_finished() -> None: + item.setGraphicsEffect(None) + Game.animations.remove(animation) + + animation.finished.connect(on_animation_finished) Game.animations.append(animation) return animation diff --git a/cromulant/manifest.json b/cromulant/manifest.json index 9311aa7..a33cd24 100644 --- a/cromulant/manifest.json +++ b/cromulant/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.6.0", + "version": "4.0.0", "title": "Cromulant", "program": "cromulant", "author": "madprops",