add menu option to reload subscriber emotes
This commit is contained in:
@@ -230,6 +230,7 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
|||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction("Reload channel emotes", this, SLOT(reloadChannelEmotes()));
|
menu->addAction("Reload channel emotes", this, SLOT(reloadChannelEmotes()));
|
||||||
|
menu->addAction("Reload subscriber emotes", this, SLOT(reloadSubscriberEmotes()));
|
||||||
menu->addAction("Reconnect", this, SLOT(reconnect()));
|
menu->addAction("Reconnect", this, SLOT(reconnect()));
|
||||||
menu->addAction("Clear messages", this->split_, &Split::clear);
|
menu->addAction("Clear messages", this->split_, &Split::clear);
|
||||||
// menu->addSeparator();
|
// menu->addSeparator();
|
||||||
@@ -539,6 +540,11 @@ void SplitHeader::reloadChannelEmotes()
|
|||||||
twitchChannel->refreshChannelEmotes();
|
twitchChannel->refreshChannelEmotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SplitHeader::reloadSubscriberEmotes()
|
||||||
|
{
|
||||||
|
getApp()->accounts->twitch.getCurrent()->loadEmotes();
|
||||||
|
}
|
||||||
|
|
||||||
void SplitHeader::reconnect()
|
void SplitHeader::reconnect()
|
||||||
{
|
{
|
||||||
getApp()->twitch.server->connect();
|
getApp()->twitch.server->connect();
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ private:
|
|||||||
public slots:
|
public slots:
|
||||||
void moveSplit();
|
void moveSplit();
|
||||||
void reloadChannelEmotes();
|
void reloadChannelEmotes();
|
||||||
|
void reloadSubscriberEmotes();
|
||||||
void reconnect();
|
void reconnect();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user