diff options
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 |