From b4683c5b35a4c9a373c19c26c6b0c86f326057d8 Mon Sep 17 00:00:00 2001 From: Ckat Date: Thu, 4 Oct 2018 22:34:57 +0200 Subject: [PATCH] add menu option to reload subscriber emotes --- src/widgets/splits/SplitHeader.cpp | 6 ++++++ src/widgets/splits/SplitHeader.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index 5a883eee8..3d41eab16 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -230,6 +230,7 @@ std::unique_ptr SplitHeader::createMainMenu() menu->addSeparator(); menu->addAction("Reload channel emotes", this, SLOT(reloadChannelEmotes())); + menu->addAction("Reload subscriber emotes", this, SLOT(reloadSubscriberEmotes())); menu->addAction("Reconnect", this, SLOT(reconnect())); menu->addAction("Clear messages", this->split_, &Split::clear); // menu->addSeparator(); @@ -539,6 +540,11 @@ void SplitHeader::reloadChannelEmotes() twitchChannel->refreshChannelEmotes(); } +void SplitHeader::reloadSubscriberEmotes() +{ + getApp()->accounts->twitch.getCurrent()->loadEmotes(); +} + void SplitHeader::reconnect() { getApp()->twitch.server->connect(); diff --git a/src/widgets/splits/SplitHeader.hpp b/src/widgets/splits/SplitHeader.hpp index 7da6657be..fb58833ee 100644 --- a/src/widgets/splits/SplitHeader.hpp +++ b/src/widgets/splits/SplitHeader.hpp @@ -75,6 +75,7 @@ private: public slots: void moveSplit(); void reloadChannelEmotes(); + void reloadSubscriberEmotes(); void reconnect(); };