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();
+3 -3
View File
@@ -35,9 +35,7 @@ class BttvEmotes;
class TwitchIrcServer;
class TwitchChannel : public Channel,
public ChannelChatters,
pajlada::Signals::SignalHolder
class TwitchChannel : public Channel, public ChannelChatters
{
public:
struct StreamStatus {
@@ -184,6 +182,8 @@ private:
QElapsedTimer clipCreationTimer_;
bool isClipCreationInProgress{false};
pajlada::Signals::SignalHolder signalHolder_;
friend class TwitchIrcServer;
friend class TwitchMessageBuilder;
friend class IrcMessageHandler;