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
+9
View File
@@ -6,6 +6,7 @@
#include "messages/LimitedQueueSnapshot.hpp"
#include "messages/Message.hpp"
#include "messages/layouts/MessageLayout.hpp"
#include "providers/twitch/TwitchChannel.hpp"
#include "providers/twitch/TwitchServer.hpp"
#include "singletons/Settings.hpp"
#include "singletons/Theme.hpp"
@@ -552,6 +553,14 @@ void ChannelView::setChannel(ChannelPtr newChannel)
this->layoutMessages();
this->queueUpdate();
// Notifications
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(newChannel.get());
if (tc != nullptr) {
tc->tabHighlightRequested.connect([this](HighlightState state) {
this->tabHighlightRequested.invoke(HighlightState::Notification);
});
}
}
void ChannelView::detachChannel()