fix: remove deprecated Application::getTwitchAbstract (#5560)

This commit is contained in:
pajlada
2024-08-25 13:38:57 +02:00
committed by GitHub
parent 3e510fd9e9
commit ac88730563
21 changed files with 45 additions and 69 deletions
+3 -4
View File
@@ -254,7 +254,7 @@ void NativeMessagingServer::ReceiverThread::handleSelect(
postToThread([=] {
if (!name.isEmpty())
{
auto channel = getApp()->getTwitchAbstract()->getOrAddChannel(name);
auto channel = getApp()->getTwitch()->getOrAddChannel(name);
if (getApp()->getTwitch()->getWatchingChannel().get() != channel)
{
getApp()->getTwitch()->setWatchingChannel(channel);
@@ -268,7 +268,7 @@ void NativeMessagingServer::ReceiverThread::handleSelect(
if (!name.isEmpty())
{
window->setChannel(
getApp()->getTwitchAbstract()->getOrAddChannel(name));
getApp()->getTwitch()->getOrAddChannel(name));
}
#endif
}
@@ -319,8 +319,7 @@ void NativeMessagingServer::syncChannels(const QJsonArray &twitchChannels)
continue;
}
// the deduping is done on the extension side
updated.emplace_back(
getApp()->getTwitchAbstract()->getOrAddChannel(name));
updated.emplace_back(getApp()->getTwitch()->getOrAddChannel(name));
}
// This will destroy channels that aren't used anymore.