1 Commits

Author SHA1 Message Date
Xarus
ed721be09d Patch for offline without accounts. 2024-03-23 18:34:15 -07:00
2 changed files with 3 additions and 2 deletions

View File

@@ -88,8 +88,7 @@ void LaunchController::decideAccount()
if (accounts->count() <= 0) {
// Tell the user they need to log in at least one account in order to play.
auto reply = CustomMessageBox::selectable(m_parentWidget, tr("No Accounts"),
tr("In order to play Minecraft, you must have at least one Microsoft "
"account which owns Minecraft logged in. "
tr("In order to play Minecraft, you must have at least one account setup (online or offline). "
"Would you like to open the account manager to add an account now?"),
QMessageBox::Information, QMessageBox::Yes | QMessageBox::No)
->exec();

View File

@@ -147,6 +147,7 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
void AccountListPage::on_actionAddOffline_triggered()
{
if(false){
if (!m_accounts->anyAccountIsValid()) {
QMessageBox::warning(this, tr("Error"),
tr("You must add a Microsoft account that owns Minecraft before you can add an offline account."
@@ -154,6 +155,7 @@ void AccountListPage::on_actionAddOffline_triggered()
"If you have lost your account you can contact Microsoft for support."));
return;
}
}
MinecraftAccountPtr account =
OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account."));