From 4c8248093b0098943a66bab7ad4fa9aed65c192d Mon Sep 17 00:00:00 2001 From: itsMeRaj69 Date: Sun, 13 Jul 2025 02:35:53 +0530 Subject: [PATCH] Fixed creation of Offline Account --- launcher/ui/pages/global/AccountListPage.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 041b8faff..77521decf 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -141,14 +141,8 @@ void AccountListPage::on_actionAddMicrosoft_triggered() void AccountListPage::on_actionAddOffline_triggered() { - 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." - "

" - "If you have lost your account you can contact Microsoft for support.")); - return; - } - +// Deleted the logic to allow creation of +// Offline account MinecraftAccountPtr account = OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account."));