Added functionality of colored splits when live
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user