Implement an advanced method of adding a user to chatterino.

You can now switch between multiple users in the settings dialog.
(Requires a restart for reconnecting etc)
This commit is contained in:
Rasmus Karlsson
2017-08-19 15:37:56 +02:00
parent 60afaa588b
commit 8d2e48f944
13 changed files with 271 additions and 38 deletions
+6 -1
View File
@@ -31,8 +31,13 @@ IrcManager::IrcManager(ChannelManager &_channelManager, Resources &_resources,
, resources(_resources)
, emoteManager(_emoteManager)
, windowManager(_windowManager)
, _account(AccountManager::getInstance().getTwitchUser())
, _account(AccountManager::getInstance().getTwitchAnon())
, currentUser("/accounts/current")
{
this->currentUser.getValueChangedSignal().connect([](const auto &newUsername) {
// TODO: Implement
qDebug() << "Current user changed, fetch new credentials and reconnect";
});
}
const twitch::TwitchUser &IrcManager::getUser() const