GH-4317 Detect forced migration state and show errors for it

This commit is contained in:
Petr Mrázek
2022-04-23 01:31:03 +02:00
parent ef1bf57b58
commit b39410a2c2
13 changed files with 143 additions and 1 deletions

View File

@@ -239,6 +239,18 @@ void LaunchController::login() {
emitFailed(errorString);
return;
}
case AccountState::MustMigrate: {
auto errorString = tr("The account must be migrated to a Microsoft account.");
QMessageBox::warning(
m_parentWidget,
tr("Account requires migration"),
errorString,
QMessageBox::StandardButton::Ok,
QMessageBox::StandardButton::Ok
);
emitFailed(errorString);
return;
}
}
}
emitFailed(tr("Failed to launch."));