mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix a bug with twitch channels and the livestatusChanged signal
This commit is contained in:
parent
57069c609a
commit
0f9ef9d0aa
|
@ -550,9 +550,9 @@ void ChannelView::setChannel(ChannelPtr newChannel)
|
||||||
// Notifications
|
// Notifications
|
||||||
if (auto tc = dynamic_cast<TwitchChannel *>(newChannel.get()))
|
if (auto tc = dynamic_cast<TwitchChannel *>(newChannel.get()))
|
||||||
{
|
{
|
||||||
tc->liveStatusChanged.connect([this]() {
|
this->connections_.push_back(tc->liveStatusChanged.connect([this]() {
|
||||||
this->liveStatusChanged.invoke(); //
|
this->liveStatusChanged.invoke(); //
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue