aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-12-08 01:22:57 +0100
committerPetr Mrázek <peterix@gmail.com>2021-12-08 01:22:57 +0100
commitdba4c452e07cafa0dd0f14ed2d1c031d6dc58f33 (patch)
tree184f96b80a50f52fa762812946db02e7bf0c9073 /launcher
parent90a62c429a0031ff64113e07a2ee2bf5ce69fbbc (diff)
downloadPrismLauncher-dba4c452e07cafa0dd0f14ed2d1c031d6dc58f33.tar.gz
PrismLauncher-dba4c452e07cafa0dd0f14ed2d1c031d6dc58f33.tar.bz2
PrismLauncher-dba4c452e07cafa0dd0f14ed2d1c031d6dc58f33.zip
NOISSUE account tweaks
Diffstat (limited to 'launcher')
-rw-r--r--launcher/minecraft/auth/AccountData.cpp4
-rw-r--r--launcher/minecraft/auth/AccountData.h2
-rw-r--r--launcher/minecraft/auth/MinecraftAccount.h4
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