adjusted optimization

This commit is contained in:
fourtf 2018-04-18 17:10:17 +02:00
parent 4c99f2b5fd
commit 692563fd8e

View file

@ -131,12 +131,12 @@ void Image::loadImage()
lli->isLoaded = true; lli->isLoaded = true;
util::DebugCount::increase("loaded images"); util::DebugCount::increase("loaded images");
singletons::EmoteManager::getInstance().incGeneration();
if (!loadedEventQueued) { if (!loadedEventQueued) {
loadedEventQueued = true; loadedEventQueued = true;
QTimer::singleShot(750, [] { QTimer::singleShot(500, [] {
singletons::EmoteManager::getInstance().incGeneration();
singletons::WindowManager::getInstance().layoutVisibleChatWidgets(); singletons::WindowManager::getInstance().layoutVisibleChatWidgets();
loadedEventQueued = false; loadedEventQueued = false;
}); });