summaryrefslogtreecommitdiff
path: root/patches/prismlauncher-allow-offline-accounts.patch
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-11-13 10:40:41 +0300
committerAzat Bahawi <azat@bahawi.net>2023-11-13 10:40:41 +0300
commita3f9fde2a2d43dd477f402bd4b8df2a1cd29ca43 (patch)
treecbd0c2457daa6865eb33b5389ec40309e60868a9 /patches/prismlauncher-allow-offline-accounts.patch
parent011c1632f3762e1bc1ecfdee9d9f3b3f44be74e5 (diff)
2023-11-13
Diffstat (limited to 'patches/prismlauncher-allow-offline-accounts.patch')
-rw-r--r--patches/prismlauncher-allow-offline-accounts.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/prismlauncher-allow-offline-accounts.patch b/patches/prismlauncher-allow-offline-accounts.patch
new file mode 100644
index 0000000..c245066
--- /dev/null
+++ b/patches/prismlauncher-allow-offline-accounts.patch
@@ -0,0 +1,24 @@
+diff --git i/launcher/ui/pages/global/AccountListPage.cpp w/launcher/ui/pages/global/AccountListPage.cpp
+index 278f45c4..b65cbbfb 100644
+--- i/launcher/ui/pages/global/AccountListPage.cpp
++++ w/launcher/ui/pages/global/AccountListPage.cpp
+@@ -188,19 +188,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."
+- )
+- );
+- return;
+- }
+-
+ MinecraftAccountPtr account = OfflineLoginDialog::newAccount(
+ this,
+ tr("Please enter your desired username to add your offline account.")