From 513361df25485cb2e4593820084e5ee71e6e5a23 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Wed, 22 May 2024 19:46:43 -0400 Subject: [PATCH] DRM: check for valid account, not just any account --- README.md | 3 +++ launcher/ui/pages/global/AccountListPage.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2e197dc1..440613ee5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Fjord Launcher logo Fjord Launcher +> [!WARNING] +> Fjord Launcher is currently under development and is not yet in an easy-to-use state. + Fjord Launcher is a **fork** of Prism Launcher. It is **not** endorsed by or affiliated with Prism Launcher. ## Advantages of this fork over Prism Launcher diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 39e993db3..6870ba505 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -152,7 +152,7 @@ void AccountListPage::on_actionAddMojang_triggered() void AccountListPage::on_actionAddAuthlibInjector_triggered() { - if (m_accounts->count() == 0) { + if (!m_accounts->anyAccountIsValid()) { QMessageBox::warning(this, tr("Error"), tr("You must add a Microsoft or Mojang account that owns Minecraft before you can add an account on a custom " "authentication server." @@ -192,7 +192,7 @@ void AccountListPage::on_actionAddMicrosoft_triggered() void AccountListPage::on_actionAddOffline_triggered() { - if (m_accounts->count() == 0) { + if (!m_accounts->anyAccountIsValid()) { QMessageBox::warning(this, tr("Error"), tr("You must add a Microsoft or Mojang account that owns Minecraft before you can add an offline account." "

"