aboutsummaryrefslogtreecommitdiff
path: root/api/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorJoël Troch <joel.troch62@gmail.com>2020-12-09 23:16:01 +0100
committerJoël Troch <joel.troch62@gmail.com>2021-05-13 19:38:24 +0200
commitde089195cdb79c7f5cf46dd78782d6da5401d8da (patch)
tree677512b9485975dbcd3967a5ac62db0eeab371d2 /api/logic/BaseInstance.cpp
parent3d11f9a7e97301483c50621db9a8b9b7b04d790f (diff)
downloadPrismLauncher-de089195cdb79c7f5cf46dd78782d6da5401d8da.tar.gz
PrismLauncher-de089195cdb79c7f5cf46dd78782d6da5401d8da.tar.bz2
PrismLauncher-de089195cdb79c7f5cf46dd78782d6da5401d8da.zip
GH-3450 Add checkboxes to display and record game time
Diffstat (limited to 'api/logic/BaseInstance.cpp')
-rw-r--r--api/logic/BaseInstance.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/logic/BaseInstance.cpp b/api/logic/BaseInstance.cpp
index d08ceb2b..cff16631 100644
--- a/api/logic/BaseInstance.cpp
+++ b/api/logic/BaseInstance.cpp
@@ -134,6 +134,12 @@ void BaseInstance::setRunning(bool running)
m_isRunning = running;
+ if(!m_settings->get("RecordGameTime").toBool())
+ {
+ emit runningStatusChanged(running);
+ return;
+ }
+
if(running)
{
m_timeStarted = QDateTime::currentDateTime();