From a486d78df90d05e5b4a64f7e63f29559d124fa22 Mon Sep 17 00:00:00 2001 From: itsMeRaj69 Date: Mon, 14 Jul 2025 01:28:51 +0530 Subject: [PATCH] Hoping this build may fix the issues... --- launcher/LaunchController.cpp | 2 +- launcher/ui/pages/global/AccountListPage.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 82a73b05a..840c85cfa 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -150,7 +150,7 @@ bool LaunchController::askPlayDemo() if (box.clickedButton() == demoButton) { return true; } else if (box.clickedButton() == continueButton) { - return true; + return false; } else { return false; } diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 77521decf..c62cf25e0 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -141,10 +141,11 @@ void AccountListPage::on_actionAddMicrosoft_triggered() void AccountListPage::on_actionAddOffline_triggered() { -// 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.")); + if (!m_accounts->anyAccountIsValid()) { + QMessageBox::warning(this, tr("Warning"), tr("Please be less broke next time and actually own Minecraft ;)")); + } + + MinecraftAccountPtr account = OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account.")); if (account) { m_accounts->addAccount(account); @@ -153,7 +154,6 @@ void AccountListPage::on_actionAddOffline_triggered() } } } - void AccountListPage::on_actionRemove_triggered() { auto response = CustomMessageBox::selectable(this, tr("Remove account?"), tr("Do you really want to delete this account?"),