diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-09-05 18:54:27 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-09-05 18:54:27 +0200 |
commit | 46468c8f142144bd5c90a7d3e0dffb43f79a9223 (patch) | |
tree | eba6857051973f56195e20d4612768e1c958b18b /launcher/pages/global | |
parent | 878c4fb8103bc866e5368fbb7287e94cca190dff (diff) | |
download | PrismLauncher-46468c8f142144bd5c90a7d3e0dffb43f79a9223.tar.gz PrismLauncher-46468c8f142144bd5c90a7d3e0dffb43f79a9223.tar.bz2 PrismLauncher-46468c8f142144bd5c90a7d3e0dffb43f79a9223.zip |
NOISSUE block MS account adding on macOS < 10.13 builds
It's never going to work with Qt 5.6, so there's no point.
People need to update.
Diffstat (limited to 'launcher/pages/global')
-rw-r--r-- | launcher/pages/global/AccountListPage.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/launcher/pages/global/AccountListPage.cpp b/launcher/pages/global/AccountListPage.cpp index f52fa834..74537712 100644 --- a/launcher/pages/global/AccountListPage.cpp +++ b/launcher/pages/global/AccountListPage.cpp @@ -128,6 +128,18 @@ void AccountListPage::on_actionAddMojang_triggered() void AccountListPage::on_actionAddMicrosoft_triggered() { + if(BuildConfig.BUILD_PLATFORM == "osx64") { + CustomMessageBox::selectable( + this, + tr("Microsoft Accounts not available"), + tr( + "Microsoft accounts are only usable on macOS 10.13 or newer, with fully updated MultiMC.\n\n" + "Please update both your operating system and MultiMC." + ), + QMessageBox::Warning + )->exec(); + return; + } MinecraftAccountPtr account = MSALoginDialog::newAccount( this, tr("Please enter your Mojang account email and password to add your account.") |