DRM: check for valid account, not just any account

This commit is contained in:
Evan Goode 2024-05-22 19:46:43 -04:00
parent 13a32a6642
commit 513361df25
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# <img src="./program_info/org.unmojang.FjordLauncher.svg" alt="Fjord Launcher logo" width="96"/> 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

View File

@ -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."
"<br><br>"