From 39780c72382f398fb903d8bb883138701ac00e9b Mon Sep 17 00:00:00 2001 From: arthomnix Date: Tue, 23 May 2023 16:52:27 +0100 Subject: [PATCH] NOISSUE Fix release date check --- launcher/ui/dialogs/CreateShortcutDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/CreateShortcutDialog.cpp b/launcher/ui/dialogs/CreateShortcutDialog.cpp index fa95bf87..dc8415e6 100644 --- a/launcher/ui/dialogs/CreateShortcutDialog.cpp +++ b/launcher/ui/dialogs/CreateShortcutDialog.cpp @@ -45,6 +45,8 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance // TODO: check if version is affected by crashing when joining servers on launch, ideally in meta + bool instanceSupportsQuickPlay = false; + auto mcInstance = std::dynamic_pointer_cast(instance); if (mcInstance) { @@ -52,6 +54,7 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance if (mcInstance->getPackProfile()->getComponent("net.minecraft")->getReleaseDateTime() >= g_VersionFilterData.quickPlayBeginsDate) { + instanceSupportsQuickPlay = true; mcInstance->worldList()->update(); for (const auto &world : mcInstance->worldList()->allWorlds()) { @@ -59,7 +62,8 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance } } } - else + + if (!instanceSupportsQuickPlay) { ui->joinServerRadioButton->setChecked(true); ui->joinSingleplayerRadioButton->setVisible(false);