From 692563fd8e0c49dec37364fba0b17bdcbe505dd1 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 18 Apr 2018 17:10:17 +0200 Subject: [PATCH] adjusted optimization --- src/messages/image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messages/image.cpp b/src/messages/image.cpp index 6a235ddf5..11a6d0214 100644 --- a/src/messages/image.cpp +++ b/src/messages/image.cpp @@ -131,12 +131,12 @@ void Image::loadImage() lli->isLoaded = true; util::DebugCount::increase("loaded images"); - singletons::EmoteManager::getInstance().incGeneration(); - if (!loadedEventQueued) { loadedEventQueued = true; - QTimer::singleShot(750, [] { + QTimer::singleShot(500, [] { + singletons::EmoteManager::getInstance().incGeneration(); + singletons::WindowManager::getInstance().layoutVisibleChatWidgets(); loadedEventQueued = false; });