Ensure live status requests are always batched (#4713)

This commit is contained in:
pajlada
2023-07-02 15:52:15 +02:00
committed by GitHub
parent f915eab1a2
commit 76527073cf
20 changed files with 582 additions and 282 deletions
+1 -5
View File
@@ -740,7 +740,7 @@ void SplitHeader::handleChannelChanged()
if (auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
{
this->channelConnections_.managedConnect(
twitchChannel->liveStatusChanged, [this]() {
twitchChannel->streamStatusChanged, [this]() {
this->updateChannelText();
});
}
@@ -956,10 +956,6 @@ void SplitHeader::enterEvent(QEvent *event)
if (!this->tooltipText_.isEmpty())
{
auto *channel = this->split_->getChannel().get();
if (channel->getType() == Channel::Type::Twitch)
{
dynamic_cast<TwitchChannel *>(channel)->refreshTitle();
}
auto *tooltip = TooltipWidget::instance();
tooltip->setOne({nullptr, this->tooltipText_});