Update Settings and Signals version (#3398)

Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
pajlada
2021-12-19 15:57:56 +01:00
committed by GitHub
parent 60ff82f2de
commit 51ece94f58
39 changed files with 282 additions and 268 deletions
+8 -6
View File
@@ -158,14 +158,16 @@ TwitchChannel::TwitchChannel(const QString &name)
{
qCDebug(chatterinoTwitch) << "[TwitchChannel" << name << "] Opened";
this->managedConnect(getApp()->accounts->twitch.currentUserChanged, [=] {
this->setMod(false);
});
this->signalHolder_.managedConnect(
getApp()->accounts->twitch.currentUserChanged, [=] {
this->setMod(false);
});
// pubsub
this->managedConnect(getApp()->accounts->twitch.currentUserChanged, [=] {
this->refreshPubsub();
});
this->signalHolder_.managedConnect(
getApp()->accounts->twitch.currentUserChanged, [=] {
this->refreshPubsub();
});
this->refreshPubsub();
this->userStateChanged.connect([this] {
this->refreshPubsub();