diff options
author | dada513 <dada513@protonmail.com> | 2022-03-23 19:06:17 +0100 |
---|---|---|
committer | dada513 <dada513@protonmail.com> | 2022-03-27 14:50:47 +0200 |
commit | b1af689546704d5e05ef4bc44f43ce9e8bb4854c (patch) | |
tree | 28997fe134623bbb48f9cdf6177436b9ee3ce370 /launcher/ui | |
parent | c7fdfb811669a863606dc0a26186c0ab827db9c6 (diff) | |
download | PrismLauncher-b1af689546704d5e05ef4bc44f43ce9e8bb4854c.tar.gz PrismLauncher-b1af689546704d5e05ef4bc44f43ce9e8bb4854c.tar.bz2 PrismLauncher-b1af689546704d5e05ef4bc44f43ce9e8bb4854c.zip |
Add quit launcher after game stops option (Steam Deck)
lecense
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/pages/global/MinecraftPage.cpp | 2 | ||||
-rw-r--r-- | launcher/ui/pages/global/MinecraftPage.ui | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/MinecraftPage.cpp b/launcher/ui/pages/global/MinecraftPage.cpp index 9abae425..f49f5a92 100644 --- a/launcher/ui/pages/global/MinecraftPage.cpp +++ b/launcher/ui/pages/global/MinecraftPage.cpp @@ -94,6 +94,7 @@ void MinecraftPage::applySettings() // Miscellaneous s->set("CloseAfterLaunch", ui->closeAfterLaunchCheck->isChecked()); + s->set("QuitAfterGameStop", ui->quitAfterGameStopCheck->isChecked()); } void MinecraftPage::loadSettings() @@ -113,6 +114,7 @@ void MinecraftPage::loadSettings() ui->recordGameTime->setChecked(s->get("RecordGameTime").toBool()); ui->closeAfterLaunchCheck->setChecked(s->get("CloseAfterLaunch").toBool()); + ui->quitAfterGameStopCheck->setChecked(s->get("QuitAfterGameStop").toBool()); } void MinecraftPage::retranslate() diff --git a/launcher/ui/pages/global/MinecraftPage.ui b/launcher/ui/pages/global/MinecraftPage.ui index a28b1f59..decc9b8b 100644 --- a/launcher/ui/pages/global/MinecraftPage.ui +++ b/launcher/ui/pages/global/MinecraftPage.ui @@ -180,6 +180,16 @@ </property> </widget> </item> + <item> + <widget class="QCheckBox" name="quitAfterGameStopCheck"> + <property name="toolTip"> + <string><html><head/><body><p>PolyMC will automatically exit if the game crashes or exists.</p></body></html></string> + </property> + <property name="text"> + <string>Quit PolyMC after game window stops</string> + </property> + </widget> + </item> </layout> </widget> </item> |