summaryrefslogtreecommitdiff
path: root/patches/prismlauncher-allow-offline-accounts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/prismlauncher-allow-offline-accounts.patch')
-rw-r--r--patches/prismlauncher-allow-offline-accounts.patch23
1 files changed, 9 insertions, 14 deletions
diff --git a/patches/prismlauncher-allow-offline-accounts.patch b/patches/prismlauncher-allow-offline-accounts.patch
index c245066..4454551 100644
--- a/patches/prismlauncher-allow-offline-accounts.patch
+++ b/patches/prismlauncher-allow-offline-accounts.patch
@@ -1,24 +1,19 @@
diff --git i/launcher/ui/pages/global/AccountListPage.cpp w/launcher/ui/pages/global/AccountListPage.cpp
-index 278f45c4..b65cbbfb 100644
+index 3a21cdd9..de665694 100644
--- i/launcher/ui/pages/global/AccountListPage.cpp
+++ w/launcher/ui/pages/global/AccountListPage.cpp
-@@ -188,19 +188,6 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
+@@ -146,14 +146,6 @@ 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 or Mojang account that owns Minecraft before you can add an offline account."
-- "<br><br>"
-- "If you have lost your account you can contact Microsoft for support."
-- )
-- );
+- QMessageBox::warning(this, tr("Error"),
+- tr("You must add a Microsoft account that owns Minecraft before you can add an offline account."
+- "<br><br>"
+- "If you have lost your account you can contact Microsoft for support."));
- return;
- }
-
- MinecraftAccountPtr account = OfflineLoginDialog::newAccount(
- this,
- tr("Please enter your desired username to add your offline account.")
+ MinecraftAccountPtr account =
+ OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account."));
+