Removed unused signal in TwitchChannel.

This commit is contained in:
23rd 2018-10-13 17:15:26 +03:00 committed by pajlada
parent 3e268637f0
commit e13d927a4e
3 changed files with 1 additions and 7 deletions

View file

@ -89,7 +89,6 @@ TwitchChannel::TwitchChannel(const QString &name,
{ {
log("[TwitchChannel:{}] Opened", name); log("[TwitchChannel:{}] Opened", name);
this->tabHighlightRequested.connect([](HighlightState state) {});
this->liveStatusChanged.connect([this]() { this->liveStatusChanged.connect([this]() {
if (this->isLive() == 1) { if (this->isLive() == 1) {
} }

View file

@ -92,7 +92,6 @@ public:
pajlada::Signals::NoArgSignal userStateChanged; pajlada::Signals::NoArgSignal userStateChanged;
pajlada::Signals::NoArgSignal liveStatusChanged; pajlada::Signals::NoArgSignal liveStatusChanged;
pajlada::Signals::NoArgSignal roomModesChanged; pajlada::Signals::NoArgSignal roomModesChanged;
pajlada::Signals::Signal<HighlightState> tabHighlightRequested;
protected: protected:
void addRecentChatter(const MessagePtr &message) override; void addRecentChatter(const MessagePtr &message) override;

View file

@ -552,11 +552,7 @@ void ChannelView::setChannel(ChannelPtr newChannel)
this->queueUpdate(); this->queueUpdate();
// Notifications // Notifications
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(newChannel.get()); if (auto tc = dynamic_cast<TwitchChannel *>(newChannel.get())) {
if (tc != nullptr) {
tc->tabHighlightRequested.connect([this](HighlightState state) {
this->tabHighlightRequested.invoke(state);
});
tc->liveStatusChanged.connect([this]() { tc->liveStatusChanged.connect([this]() {
this->liveStatusChanged.invoke(); // this->liveStatusChanged.invoke(); //
}); });