aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows/MojangRefresh.cpp
blob: af99175c7cebab3c4ba683c57cdf2a36d1070ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "MojangRefresh.h"

MojangRefresh::MojangRefresh(AccountData* data, QObject* parent) : AuthContext(data, parent) {}

void MojangRefresh::executeTask() {
    m_requestsDone = 0;
    m_xboxProfileSucceeded = false;
    m_mcAuthSucceeded = false;

    initMojang();

    beginActivity(Katabasis::Activity::Refreshing);
    m_yggdrasil->refresh();
}