this commit is too big

This commit is contained in:
fourtf
2018-08-02 14:23:27 +02:00
parent 3b3c5d8d75
commit c2e2dfb577
186 changed files with 3626 additions and 2656 deletions
+7 -8
View File
@@ -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();