mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
parent
2ea3643100
commit
926a753a54
1 changed files with 4 additions and 2 deletions
|
@ -7,11 +7,13 @@ namespace chatterino {
|
||||||
|
|
||||||
void Emotes::initialize(Application &app)
|
void Emotes::initialize(Application &app)
|
||||||
{
|
{
|
||||||
app.accounts->twitch.currentUserChanged.connect([this, &app] {
|
const auto refreshTwitchEmotes = [this, &app] {
|
||||||
auto currentUser = app.accounts->twitch.getCurrent();
|
auto currentUser = app.accounts->twitch.getCurrent();
|
||||||
assert(currentUser);
|
assert(currentUser);
|
||||||
this->twitch.refresh(currentUser);
|
this->twitch.refresh(currentUser);
|
||||||
});
|
};
|
||||||
|
app.accounts->twitch.currentUserChanged.connect(refreshTwitchEmotes);
|
||||||
|
refreshTwitchEmotes();
|
||||||
|
|
||||||
this->emojis.load();
|
this->emojis.load();
|
||||||
this->bttv.loadGlobalEmotes();
|
this->bttv.loadGlobalEmotes();
|
||||||
|
|
Loading…
Reference in a new issue