diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-10-24 01:21:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 01:21:26 +0200 |
commit | cbe1b3353c1b3c4562ae00188166a9b14f89c81f (patch) | |
tree | 5782f10451edd3efe879a5deeef0f4e61277d008 /launcher/pages/global | |
parent | 98887911c15dc407e797998cf04e0b90b6aa09ae (diff) | |
parent | 2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28 (diff) | |
download | PrismLauncher-cbe1b3353c1b3c4562ae00188166a9b14f89c81f.tar.gz PrismLauncher-cbe1b3353c1b3c4562ae00188166a9b14f89c81f.tar.bz2 PrismLauncher-cbe1b3353c1b3c4562ae00188166a9b14f89c81f.zip |
Merge pull request #4172 from jamierocks/global-playtime
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> |