mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed unnecessary recreation of fireworks in history view todo list.
This commit is contained in:
@@ -414,7 +414,8 @@ void TodoList::toggleCompletion(int id) {
|
||||
}
|
||||
|
||||
void TodoList::maybeStartFireworks() {
|
||||
if (!ranges::contains(_tasks, TimeId(), &Task::completionDate)) {
|
||||
if (!ranges::contains(_tasks, TimeId(), &Task::completionDate)
|
||||
&& !_fireworksAnimation) {
|
||||
_fireworksAnimation = std::make_unique<Ui::FireworksAnimation>(
|
||||
[=] { repaint(); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user