this commit is too big
This commit is contained in:
@@ -5,15 +5,14 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
void Emotes::initialize(Application &app)
|
||||
Emotes::Emotes()
|
||||
{
|
||||
const auto refreshTwitchEmotes = [this, &app] {
|
||||
auto currentUser = app.accounts->twitch.getCurrent();
|
||||
assert(currentUser);
|
||||
this->twitch.refresh(currentUser);
|
||||
};
|
||||
app.accounts->twitch.currentUserChanged.connect(refreshTwitchEmotes);
|
||||
refreshTwitchEmotes();
|
||||
}
|
||||
|
||||
void Emotes::initialize(Settings &settings, Paths &paths)
|
||||
{
|
||||
getApp()->accounts->twitch.currentUserChanged.connect(
|
||||
[] { getApp()->accounts->twitch.getCurrent()->loadEmotes(); });
|
||||
|
||||
this->emojis.load();
|
||||
this->bttv.loadGlobalEmotes();
|
||||
|
||||
Reference in New Issue
Block a user