chatgui: fix all animations showing the same TGS (rlottie model cache key collision)

lottie_animation_from_data uses 'key' as a cache key for parsed models.
All LottieIcon instances were created with key="", causing rlottie's
model cache to return the first loaded animation for all subsequent
requests. Only visible on Windows where rlottie cache is enabled by
default.

Fix: pass unique animPath as key to each LottieIcon constructor.
Also replaced fprintf(stderr) diag with GUI_INFO logging via
AnimTimer::logRegisteredIcons() in debug_ui.h.
This commit is contained in:
Evgeny committed 2026-07-26 15:18:59 +03:00
1 parent 49da899964
commit 0e11d858e8
7 files changed
+23 -22

No files matched your search

+2
View File
@@ -143,6 +143,8 @@ void MainWindow::setupNode() {
if (!m_node->start(m_cfgPath))
qWarning("Failed to start UtunNode");
else
AnimTimer::instance()->logRegisteredIcons();
}
void MainWindow::setupMessaging() {