diff options
author | Joseph Donofry <rubberduckie3554@gmail.com> | 2023-10-09 21:19:43 -0400 |
---|---|---|
committer | Joseph Donofry <rubberduckie3554@gmail.com> | 2023-10-09 21:19:43 -0400 |
commit | 24389f36f8f231763aad1dade4ebb7729c0b4335 (patch) | |
tree | ad3b3b6f2dd0954475b873b2597dc8ae51959e19 /resources | |
parent | Try to fix 'PowerlevelIndicator is not a type' (diff) | |
download | nheko-24389f36f8f231763aad1dade4ebb7729c0b4335.tar.xz |
Fix chat effect particles sometimes getting 'stuck' on screen
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/TimelineView.qml | 5 | ||||
-rw-r--r-- | resources/qml/ui/TimelineEffects.qml | 5 |
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 |