Fixed more logic which breaks OM (Offline Mode)

This commit is contained in:
itsMeRaj69 2025-07-13 17:02:21 +05:30
parent 2af0e325f5
commit c99eb0388e

View File

@ -104,8 +104,8 @@ void LaunchController::decideAccount()
// Skipping Microsoft account validity check to allow offline/local use
// Removed: anyAccountIsValid() check
}
// Select the account to use. If the instance has a specific account set, that will be used. Otherwise, the default account will be used
// Select the account to use. If the instance has a specific account set, that will be used. Otherwise, the default account will be used
auto instanceAccountId = m_instance->settings()->get("InstanceAccountId").toString();
auto instanceAccountIndex = accounts->findAccountByProfileId(instanceAccountId);
if (instanceAccountIndex == -1 || instanceAccountId.isEmpty()) {