diff options
author | seth <getchoo@tuta.io> | 2023-07-12 21:10:48 -0400 |
---|---|---|
committer | seth <getchoo@tuta.io> | 2023-07-12 21:10:48 -0400 |
commit | 89aaedc06c3eb7a035d8be593a7bbe417cb2f712 (patch) | |
tree | 78efe036bb25aa7a1f0e61070d32636bdfc5b22b /launcher/ui/pages/global | |
parent | 94d4d12ee0a12572b2b661003f10cfbdda1b434a (diff) | |
download | PrismLauncher-89aaedc06c3eb7a035d8be593a7bbe417cb2f712.tar.gz PrismLauncher-89aaedc06c3eb7a035d8be593a7bbe417cb2f712.tar.bz2 PrismLauncher-89aaedc06c3eb7a035d8be593a7bbe417cb2f712.zip |
feat: add toggle for quilt beacon
Signed-off-by: seth <getchoo@tuta.io>
Diffstat (limited to 'launcher/ui/pages/global')
-rw-r--r-- | launcher/ui/pages/global/MinecraftPage.cpp | 6 | ||||
-rw-r--r-- | launcher/ui/pages/global/MinecraftPage.ui | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/MinecraftPage.cpp b/launcher/ui/pages/global/MinecraftPage.cpp index eca3e865..95482356 100644 --- a/launcher/ui/pages/global/MinecraftPage.cpp +++ b/launcher/ui/pages/global/MinecraftPage.cpp @@ -2,6 +2,7 @@ /* * PolyMC - Minecraft Launcher * Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org> + * Copyright (C) 2023 seth <getchoo at tuta dot io> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -99,6 +100,9 @@ void MinecraftPage::applySettings() // Miscellaneous s->set("CloseAfterLaunch", ui->closeAfterLaunchCheck->isChecked()); s->set("QuitAfterGameStop", ui->quitAfterGameStopCheck->isChecked()); + + // Mod loader settings + s->set("DisableQuiltBeacon", ui->disableQuiltBeaconCheckBox->isChecked()); } void MinecraftPage::loadSettings() @@ -137,6 +141,8 @@ void MinecraftPage::loadSettings() ui->closeAfterLaunchCheck->setChecked(s->get("CloseAfterLaunch").toBool()); ui->quitAfterGameStopCheck->setChecked(s->get("QuitAfterGameStop").toBool()); + + ui->disableQuiltBeaconCheckBox->setChecked(s->get("DisableQuiltBeacon").toBool()); } void MinecraftPage::retranslate() diff --git a/launcher/ui/pages/global/MinecraftPage.ui b/launcher/ui/pages/global/MinecraftPage.ui index 8f5de725..7a8f107b 100644 --- a/launcher/ui/pages/global/MinecraftPage.ui +++ b/launcher/ui/pages/global/MinecraftPage.ui @@ -191,6 +191,22 @@ </attribute> <layout class="QVBoxLayout" name="verticalLayout_12"> <item> + <widget class="QGroupBox" name="modLoaderSettingsGroupBox"> + <property name="title"> + <string>Mod loader settings</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_13"> + <item> + <widget class="QCheckBox" name="disableQuiltBeaconCheckBox"> + <property name="text"> + <string>Disable Quilt's Beacon</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> <widget class="QGroupBox" name="nativeLibWorkaroundGroupBox"> <property name="title"> <string>Native library workarounds</string> |