refactor: Remove most raw accesses into Application (#5104)
This commit is contained in:
@@ -66,7 +66,7 @@ TwitchIrcServer::TwitchIrcServer()
|
||||
|
||||
void TwitchIrcServer::initialize(Settings &settings, const Paths &paths)
|
||||
{
|
||||
getApp()->accounts->twitch.currentUserChanged.connect([this]() {
|
||||
getIApp()->getAccounts()->twitch.currentUserChanged.connect([this]() {
|
||||
postToThread([this] {
|
||||
this->connect();
|
||||
});
|
||||
@@ -81,7 +81,7 @@ void TwitchIrcServer::initializeConnection(IrcConnection *connection,
|
||||
ConnectionType type)
|
||||
{
|
||||
std::shared_ptr<TwitchAccount> account =
|
||||
getApp()->accounts->twitch.getCurrent();
|
||||
getIApp()->getAccounts()->twitch.getCurrent();
|
||||
|
||||
qCDebug(chatterinoTwitch) << "logging in as" << account->getUserName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user