Add viewer list button to twitch channel header (#2042)

This commit is contained in:
Dave
2020-10-10 11:24:53 -04:00
committed by GitHub
parent e4d7f49952
commit 98762fdfa0
9 changed files with 31 additions and 0 deletions
+9
View File
@@ -314,6 +314,15 @@ void Split::setChannel(IndirectChannel newChannel)
this->header_->updateChannelText();
this->header_->updateRoomModes();
if (newChannel.getType() == Channel::Type::Twitch)
{
this->header_->setViewersButtonVisible(true);
}
else
{
this->header_->setViewersButtonVisible(false);
}
this->channelChanged.invoke();
// Queue up save because: Split channel changed