summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2023-01-13 20:23:07 -0500
committerGitHub <noreply@github.com>2023-01-14 02:23:07 +0100
commit8835040db61d039af4bab34e36b1e634bb9d1d1f (patch)
treeb1290f7631682f1d9285f706688658926e7b8f22 /src
parentTranslated using Weblate (Japanese) (diff)
downloadnheko-8835040db61d039af4bab34e36b1e634bb9d1d1f.tar.xz
Pause ParticleEmitter when not in use (#1284)
* Pause ParticleEmitter when not in use

* Use timer instead to pause particle system
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp1
-rw-r--r--src/timeline/TimelineModel.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index a6950870..f9df1cf9 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -1998,6 +1998,7 @@ void
 TimelineModel::markSpecialEffectsDone()
 {
     needsSpecialEffects_ = false;
+    emit confettiDone();
 }
 
 QString
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h
index 0bf29dc1..334a4d6f 100644
--- a/src/timeline/TimelineModel.h
+++ b/src/timeline/TimelineModel.h
@@ -451,6 +451,7 @@ signals:
     void newCallEvent(const mtx::events::collections::TimelineEvents &event);
     void scrollToIndex(int index);
     void confetti();
+    void confettiDone();
 
     void lastMessageChanged();
     void notificationsChanged();