Added functionality of colored splits when live

This commit is contained in:
apa420
2018-08-17 21:19:15 +02:00
parent b671fc4133
commit 15e9e3e642
3 changed files with 15 additions and 2 deletions
+5 -2
View File
@@ -38,6 +38,8 @@ TwitchChannel::TwitchChannel(const QString &name)
// this->refreshChannelEmotes();
// this->refreshViewerList();
this->tabHighlightRequested.connect([](HighlightState state) {});
this->managedConnect(getApp()->accounts->twitch.currentUserChanged,
[=] { this->setMod(false); });
@@ -326,9 +328,10 @@ void TwitchChannel::setLive(bool newLiveStatus)
QApplication::alert(
getApp()->windows->getMainWindow().window(), 2500);
}
this->tabHighlightRequested.invoke(
HighlightState::Notification);
}
auto live = makeSystemMessage(this->getName() + " is live");
this->addMessage(live);
this->tabHighlightRequested.invoke(HighlightState::Notification);
guard->live = newLiveStatus;
}
}