Skip to content

Commit

Permalink
NOISSUE account tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Dec 8, 2021
1 parent 90a62c4 commit dba4c45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions launcher/minecraft/auth/AccountData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,3 +438,7 @@ QString AccountData::accountDisplayString() const {
}
}
}

QString AccountData::lastError() const {
return errorString;
}
2 changes: 2 additions & 0 deletions launcher/minecraft/auth/AccountData.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ struct AccountData {
QString profileId() const;
QString profileName() const;

QString lastError() const;

AccountType type = AccountType::MSA;
bool legacy = false;
bool canMigrateToMSA = false;
Expand Down
4 changes: 4 additions & 0 deletions launcher/minecraft/auth/MinecraftAccount.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ class MinecraftAccount :

void fillSession(AuthSessionPtr session);

QString lastError() const {
return data.lastError();
}

signals:
/**
* This signal is emitted when the account changes
Expand Down

0 comments on commit dba4c45

Please sign in to comment.