summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2023-10-09 21:19:43 -0400
committerJoseph Donofry <rubberduckie3554@gmail.com>2023-10-09 21:19:43 -0400
commit24389f36f8f231763aad1dade4ebb7729c0b4335 (patch)
treead3b3b6f2dd0954475b873b2597dc8ae51959e19 /resources/qml
parentTry to fix 'PowerlevelIndicator is not a type' (diff)
downloadnheko-24389f36f8f231763aad1dade4ebb7729c0b4335.tar.xz
Fix chat effect particles sometimes getting 'stuck' on screen
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineView.qml5
-rw-r--r--resources/qml/ui/TimelineEffects.qml5
2 files changed, 9 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index bbcf2366..8db866df 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -381,7 +381,10 @@ Item { repeat: false running: false - onTriggered: shouldEffectsRun = false + onTriggered: { + timelineEffects.removeParticles() + shouldEffectsRun = false + } } Connections { function onConfetti() { diff --git a/resources/qml/ui/TimelineEffects.qml b/resources/qml/ui/TimelineEffects.qml
index 35c54c04..4960ce32 100644 --- a/resources/qml/ui/TimelineEffects.qml +++ b/resources/qml/ui/TimelineEffects.qml
@@ -21,6 +21,11 @@ Item { rainfallEmitter.pulse(effectRoot.height * 3.3) } + function removeParticles() + { + particleSystem.reset() + } + ParticleSystem { id: particleSystem