Bound TGS decoding and keep invalid icons out of animation
This commit is contained in:
1 parent
41ce04e2f0
commit
b0acb285c1
5 files changed
+166
-66
No files matched your search
@@ -20,6 +20,7 @@ void AnimTimer::shutdown() {
|
||||
}
|
||||
|
||||
void AnimTimer::registerIcon(const QString &key, LottieIcon *icon) {
|
||||
if (!icon || !icon->isValid()) { GUI_WARN("AnimTimer: invalid icon registration key=%s", qPrintable(key)); return; }
|
||||
m_icons.insert(key, icon);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user