[Backport release-10.x] Skip asking for offline name when using offline account (#4682)

This commit is contained in:
Alexandru Ionut Tripon 2026-01-07 12:27:05 +02:00 committed by GitHub
commit 2c00eb53a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,7 +266,7 @@ void LaunchController::login()
}
/* fallthrough */
case AccountState::Online: {
if (!m_session->wants_online) {
if (!m_session->wants_online && m_accountToUse->accountType() != AccountType::Offline) {
// we ask the user for a player name
bool ok = false;
QString name;