fix: remove deprecated Application::getTwitchAbstract (#5560)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user