Fix emotes not loading properly

This commit is contained in:
Rasmus Karlsson
2018-04-22 14:38:10 +02:00
parent 0718277271
commit 3dad7e778a
3 changed files with 23 additions and 28 deletions
+1 -12
View File
@@ -25,18 +25,7 @@ AccountManager &AccountManager::getInstance()
void AccountManager::load()
{
this->Twitch.reloadUsers();
auto currentUser = this->Twitch.findUserByUsername(
QString::fromStdString(this->Twitch.currentUsername.getValue()));
if (currentUser) {
this->Twitch.currentUser = currentUser;
} else {
this->Twitch.currentUser = this->Twitch.anonymousUser;
}
// this->Twitch.userChanged.invoke();
this->Twitch.load();
}
} // namespace singletons