mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 16:51:30 +00:00
GH-4317 Detect forced migration state and show errors for it
This commit is contained in:
@@ -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."));
|
||||
|
Reference in New Issue
Block a user