From 1b39cfb14b608f374208a9483db661ccd1a43230 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 16 Nov 2023 01:47:45 +0300 Subject: 2023-11-16 --- patches/prismlauncher-allow-offline-accounts.patch | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'patches') 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." -- "

" -- "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." +- "

" +- "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.")); + -- cgit v1.2.3