diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2021-10-13 22:14:02 +0100 |
---|---|---|
committer | Jamie Mansfield <jmansfield@cadixdev.org> | 2021-10-24 00:17:07 +0100 |
commit | 2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28 (patch) | |
tree | 5782f10451edd3efe879a5deeef0f4e61277d008 /launcher/pages/global | |
parent | 98887911c15dc407e797998cf04e0b90b6aa09ae (diff) | |
download | PrismLauncher-2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28.tar.gz PrismLauncher-2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28.tar.bz2 PrismLauncher-2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28.zip |
NOISSUE Add option to disable global play time status
Diffstat (limited to 'launcher/pages/global')
-rw-r--r-- | launcher/pages/global/MinecraftPage.cpp | 3 | ||||
-rw-r--r-- | launcher/pages/global/MinecraftPage.ui | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/launcher/pages/global/MinecraftPage.cpp b/launcher/pages/global/MinecraftPage.cpp index 2830dc7c..342941f4 100644 --- a/launcher/pages/global/MinecraftPage.cpp +++ b/launcher/pages/global/MinecraftPage.cpp @@ -54,7 +54,6 @@ void MinecraftPage::on_maximizedCheckBox_clicked(bool checked) updateCheckboxStuff(); } - void MinecraftPage::applySettings() { auto s = LAUNCHER->settings(); @@ -70,6 +69,7 @@ void MinecraftPage::applySettings() // Game time s->set("ShowGameTime", ui->showGameTime->isChecked()); + s->set("ShowGlobalGameTime", ui->showGlobalGameTime->isChecked()); s->set("RecordGameTime", ui->recordGameTime->isChecked()); } @@ -86,5 +86,6 @@ void MinecraftPage::loadSettings() ui->useNativeGLFWCheck->setChecked(s->get("UseNativeGLFW").toBool()); ui->showGameTime->setChecked(s->get("ShowGameTime").toBool()); + ui->showGlobalGameTime->setChecked(s->get("ShowGlobalGameTime").toBool()); ui->recordGameTime->setChecked(s->get("RecordGameTime").toBool()); } diff --git a/launcher/pages/global/MinecraftPage.ui b/launcher/pages/global/MinecraftPage.ui index 2abd4bd4..857b8cfb 100644 --- a/launcher/pages/global/MinecraftPage.ui +++ b/launcher/pages/global/MinecraftPage.ui @@ -148,6 +148,13 @@ </widget> </item> <item> + <widget class="QCheckBox" name="showGlobalGameTime"> + <property name="text"> + <string>Show time spent playing across all instances</string> + </property> + </widget> + </item> + <item> <widget class="QCheckBox" name="recordGameTime"> <property name="text"> <string>Record time spent playing instances</string> |