From e37e35e31858a67b26c7f3eabd7a1f70070e5ad0 Mon Sep 17 00:00:00 2001 From: Przemek Pawlas <3606072+Destroy666x@users.noreply.github.com> Date: Tue, 16 Jan 2024 22:13:14 +0100 Subject: [PATCH] Fix Twitch chat connection in action when token/channel change --- src/macro-external/twitch/macro-action-twitch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/macro-external/twitch/macro-action-twitch.cpp b/src/macro-external/twitch/macro-action-twitch.cpp index 114aba86..8dd6c87c 100644 --- a/src/macro-external/twitch/macro-action-twitch.cpp +++ b/src/macro-external/twitch/macro-action-twitch.cpp @@ -535,6 +535,7 @@ void MacroActionTwitchEdit::TwitchTokenChanged(const QString &token) _entryData->_token = GetWeakTwitchTokenByQString(token); _category->SetToken(_entryData->_token); _channel->SetToken(_entryData->_token); + _entryData->ResetChatConnection(); SetWidgetVisibility(); emit(HeaderInfoChanged(token)); @@ -724,6 +725,7 @@ void MacroActionTwitchEdit::ChannelChanged(const TwitchChannel &channel) auto lock = LockContext(); _entryData->_channel = channel; + _entryData->ResetChatConnection(); } void MacroActionTwitchEdit::ChatMessageChanged()