Fixed creation of Offline Account

This commit is contained in:
itsMeRaj69 2025-07-13 02:35:53 +05:30
parent 178c7cbe26
commit 4c8248093b

View File

@ -141,14 +141,8 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
void AccountListPage::on_actionAddOffline_triggered() void AccountListPage::on_actionAddOffline_triggered()
{ {
if (!m_accounts->anyAccountIsValid()) { // Deleted the logic to allow creation of
QMessageBox::warning(this, tr("Error"), // Offline account
tr("You must add a Microsoft account that owns Minecraft before you can add an offline account."
"<br><br>"
"If you have lost your account you can contact Microsoft for support."));
return;
}
MinecraftAccountPtr account = MinecraftAccountPtr account =
OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account.")); OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account."));