fixed gifs on the emotepicker

This commit is contained in:
fourtf
2017-09-17 02:13:57 +02:00
parent 3e9f71dbf9
commit e31bb48384
13 changed files with 33 additions and 32 deletions
+5 -2
View File
@@ -13,10 +13,12 @@
namespace chatterino {
namespace widgets {
ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget, EmoteManager &emoteManager)
ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget, EmoteManager &emoteManager,
WindowManager &windowManager)
: BaseWidget(_chatWidget)
, chatWidget(_chatWidget)
, emoteManager(emoteManager)
, windowManager(windowManager)
, emotesLabel(this)
{
this->setMaximumHeight(150);
@@ -47,7 +49,8 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget, EmoteManager &emoteMan
connect(&this->emotesLabel, &RippleEffectLabel::clicked, [this] {
if (this->emotePopup == nullptr) {
this->emotePopup = new EmotePopup(this->colorScheme, this->emoteManager);
this->emotePopup =
new EmotePopup(this->colorScheme, this->emoteManager, this->windowManager);
}
this->emotePopup->resize(300, 500);