chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -109,7 +109,7 @@ void TwitchAccount::loadBlocks()
|
||||
this->ignoresUserIds_.clear();
|
||||
|
||||
getHelix()->loadBlocks(
|
||||
getIApp()->getAccounts()->twitch.getCurrent()->userId_,
|
||||
getApp()->getAccounts()->twitch.getCurrent()->userId_,
|
||||
[this](const std::vector<HelixBlock> &blocks) {
|
||||
assertInGuiThread();
|
||||
|
||||
@@ -325,7 +325,7 @@ void TwitchAccount::loadUserstateEmotes(std::weak_ptr<Channel> weakChannel)
|
||||
|
||||
emoteSet->emotes.push_back(TwitchEmote{id, code});
|
||||
|
||||
auto emote = getIApp()
|
||||
auto emote = getApp()
|
||||
->getEmotes()
|
||||
->getTwitchEmotes()
|
||||
->getOrCreateEmote(id, code);
|
||||
@@ -493,7 +493,7 @@ void TwitchAccount::loadSeventvUserID()
|
||||
return;
|
||||
}
|
||||
|
||||
auto *seventv = getIApp()->getSeventvAPI();
|
||||
auto *seventv = getApp()->getSeventvAPI();
|
||||
if (!seventv)
|
||||
{
|
||||
qCWarning(chatterinoSeventv)
|
||||
|
||||
Reference in New Issue
Block a user