add menu option to reload subscriber emotes

This commit is contained in:
Ckat 2018-10-04 22:34:57 +02:00 committed by pajlada
parent 79f64a21c3
commit b4683c5b35
2 changed files with 7 additions and 0 deletions

View file

@ -230,6 +230,7 @@ std::unique_ptr<QMenu> 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();

View file

@ -75,6 +75,7 @@ private:
public slots:
void moveSplit();
void reloadChannelEmotes();
void reloadSubscriberEmotes();
void reconnect();
};