fix: don't use same websocket connection for multiple accounts (#6348)

This commit is contained in:
pajlada
2025-08-10 11:57:14 +02:00
committed by GitHub
parent 1c9090d350
commit 4b6ba68489
12 changed files with 180 additions and 16 deletions
@@ -55,7 +55,15 @@ public:
pajlada::Settings::Setting<QString> currentUsername{"/accounts/current",
""};
// pajlada::Signals::NoArgSignal currentUserChanged;
/// This signal fires after we've figured out what the new account is, but before
/// any updates to Helix have been made.
///
/// Useful for scenarios where you have to call Helix using the previous account.
pajlada::Signals::Signal<std::shared_ptr<TwitchAccount>,
std::shared_ptr<TwitchAccount>>
currentUserAboutToChange;
boost::signals2::signal<void()> currentUserChanged;
pajlada::Signals::NoArgSignal userListUpdated;