From 67c62f7b0bd6f2479e41c005a63d74c979821f36 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 28 Jul 2024 23:49:14 -0600 Subject: [PATCH] Mods --- cromulant/game.py | 7 ++++++- cromulant/manifest.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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",