diff options
Diffstat (limited to 'games/prismlauncher/files/patch-launcher_ui_pages_global_AccountListPage.cpp')
-rw-r--r-- | games/prismlauncher/files/patch-launcher_ui_pages_global_AccountListPage.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/games/prismlauncher/files/patch-launcher_ui_pages_global_AccountListPage.cpp b/games/prismlauncher/files/patch-launcher_ui_pages_global_AccountListPage.cpp new file mode 100644 index 000000000000..0c15ed8b6577 --- /dev/null +++ b/games/prismlauncher/files/patch-launcher_ui_pages_global_AccountListPage.cpp @@ -0,0 +1,19 @@ +# Patch taken from er2off: https://github.com/er2off/freebsd-ports +--- launcher/ui/pages/global/AccountListPage.cpp.orig 2024-03-03 19:37:21 UTC ++++ launcher/ui/pages/global/AccountListPage.cpp +@@ -147,6 +147,7 @@ void AccountListPage::on_actionAddOffline_triggered() + + void AccountListPage::on_actionAddOffline_triggered() + { ++#ifdef NO_OFFLINE + if (!m_accounts->anyAccountIsValid()) { + QMessageBox::warning(this, tr("Error"), + tr("You must add a Microsoft account that owns Minecraft before you can add an offline account." +@@ -154,6 +155,7 @@ void AccountListPage::on_actionAddOffline_triggered() + "If you have lost your account you can contact Microsoft for support.")); + return; + } ++#endif + + MinecraftAccountPtr account = + OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account.")); |