mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
add menu option to reload subscriber emotes
This commit is contained in:
parent
79f64a21c3
commit
b4683c5b35
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -75,6 +75,7 @@ private:
|
|||
public slots:
|
||||
void moveSplit();
|
||||
void reloadChannelEmotes();
|
||||
void reloadSubscriberEmotes();
|
||||
void reconnect();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue