Skip to content

Commit

Permalink
DRM: check for valid account, not just any account
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed May 22, 2024
1 parent 13a32a6 commit 513361d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions launcher/ui/pages/global/AccountListPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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>"
Expand Down

0 comments on commit 513361d

Please sign in to comment.