Live streams that are marked as reruns now mark a tab as yellow instead of red (#5176)

This commit is contained in:
Mm2PL
2024-02-18 17:22:53 +01:00
committed by GitHub
parent 641cb26a76
commit 5c51ec8382
9 changed files with 71 additions and 5 deletions
+7 -1
View File
@@ -926,9 +926,15 @@ void SplitContainer::refreshTabLiveStatus()
}
bool liveStatus = false;
bool rerunStatus = false;
for (const auto &s : this->splits_)
{
auto c = s->getChannel();
if (c->isRerun())
{
rerunStatus = true;
continue; // reruns are also marked as live, SKIP
}
if (c->isLive())
{
liveStatus = true;
@@ -936,7 +942,7 @@ void SplitContainer::refreshTabLiveStatus()
}
}
if (this->tab_->setLive(liveStatus))
if (this->tab_->setLive(liveStatus) || this->tab_->setRerun(rerunStatus))
{
auto *notebook = dynamic_cast<Notebook *>(this->parentWidget());
if (notebook)