aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows/MojangRefresh.cpp
blob: 008c045331088d9d4a724029b9ffebb84d25ab62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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();
}