mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 08:41:42 +00:00
GH-4317 Detect forced migration state and show errors for it
This commit is contained in:
@@ -322,6 +322,7 @@ bool AccountData::resumeStateFromV3(QJsonObject data) {
|
||||
if(type == AccountType::Mojang) {
|
||||
legacy = data.value("legacy").toBool(false);
|
||||
canMigrateToMSA = data.value("canMigrateToMSA").toBool(false);
|
||||
mustMigrateToMSA = data.value("mustMigrateToMSA").toBool(false);
|
||||
}
|
||||
|
||||
if(type == AccountType::MSA) {
|
||||
@@ -355,6 +356,9 @@ QJsonObject AccountData::saveState() const {
|
||||
if(canMigrateToMSA) {
|
||||
output["canMigrateToMSA"] = true;
|
||||
}
|
||||
if(mustMigrateToMSA) {
|
||||
output["mustMigrateToMSA"] = true;
|
||||
}
|
||||
}
|
||||
else if (type == AccountType::MSA) {
|
||||
output["type"] = "MSA";
|
||||
|
Reference in New Issue
Block a user