diff options
-rw-r--r-- | launcher/minecraft/auth/AccountData.cpp | 4 | ||||
-rw-r--r-- | launcher/minecraft/auth/AccountData.h | 2 | ||||
-rw-r--r-- | launcher/minecraft/auth/MinecraftAccount.h | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/AccountData.cpp b/launcher/minecraft/auth/AccountData.cpp index 8aa4e37f..7526c951 100644 --- a/launcher/minecraft/auth/AccountData.cpp +++ b/launcher/minecraft/auth/AccountData.cpp @@ -438,3 +438,7 @@ QString AccountData::accountDisplayString() const { } } } + +QString AccountData::lastError() const { + return errorString; +} diff --git a/launcher/minecraft/auth/AccountData.h b/launcher/minecraft/auth/AccountData.h index fa42747e..abf84e43 100644 --- a/launcher/minecraft/auth/AccountData.h +++ b/launcher/minecraft/auth/AccountData.h @@ -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; diff --git a/launcher/minecraft/auth/MinecraftAccount.h b/launcher/minecraft/auth/MinecraftAccount.h index 18f142c4..4ac0a3e5 100644 --- a/launcher/minecraft/auth/MinecraftAccount.h +++ b/launcher/minecraft/auth/MinecraftAccount.h @@ -168,6 +168,10 @@ public: /* queries */ void fillSession(AuthSessionPtr session); + QString lastError() const { + return data.lastError(); + } + signals: /** * This signal is emitted when the account changes |