aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/MinecraftAccount.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-08-29 22:55:33 +0200
committerPetr Mrázek <peterix@gmail.com>2021-08-29 22:55:33 +0200
commit317101430148e3bbc52995aa92d668b8473026d9 (patch)
tree0dda85a8fd0b60c7eeba3950842bd1dd876155e2 /launcher/minecraft/auth/MinecraftAccount.h
parent7239502675fb68b1a2050c68f483e5d5371114e1 (diff)
downloadPrismLauncher-317101430148e3bbc52995aa92d668b8473026d9.tar.gz
PrismLauncher-317101430148e3bbc52995aa92d668b8473026d9.tar.bz2
PrismLauncher-317101430148e3bbc52995aa92d668b8473026d9.zip
GH-3392 checking for migration status and refresh button in accounts list
Diffstat (limited to 'launcher/minecraft/auth/MinecraftAccount.h')
-rw-r--r--launcher/minecraft/auth/MinecraftAccount.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/MinecraftAccount.h b/launcher/minecraft/auth/MinecraftAccount.h
index 72bb6bd4..5b0c1ec7 100644
--- a/launcher/minecraft/auth/MinecraftAccount.h
+++ b/launcher/minecraft/auth/MinecraftAccount.h
@@ -117,6 +117,14 @@ public: /* queries */
return data.profileName();
}
+ bool canMigrate() const {
+ return data.canMigrateToMSA;
+ }
+
+ bool isMSA() const {
+ return data.type == AccountType::MSA;
+ }
+
QString typeString() const {
switch(data.type) {
case AccountType::Mojang: {