added cooldown to layouting to reduce lag when opening the emojis tab

This commit is contained in:
fourtf
2018-04-06 18:27:49 +02:00
parent d85dba3e0e
commit 4ec2c0d8b3
2 changed files with 30 additions and 11 deletions
+3
View File
@@ -77,6 +77,9 @@ protected:
QPoint &relativePos, int &index);
private:
QTimer *layoutCooldown;
bool layoutQueued;
QTimer updateTimer;
bool updateQueued = false;
bool messageWasAdded = false;