Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-31 04:55:36 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-31 04:55:36 +1000
commit51d6e63dfe5bce9812886e0ece5fa62975f38d77 (patch)
tree58ad00e05e9d0f8e2f08cd725636d4fa8a81b7a7 /source/frontend/StarMainInterface.cpp
parent182d3052c5da17701b6407164a6505b8aeafa867 (diff)
Only do spatial logging when spatial log is observed
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r--source/frontend/StarMainInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp
index 4d8a22e..37d0a99 100644
--- a/source/frontend/StarMainInterface.cpp
+++ b/source/frontend/StarMainInterface.cpp
@@ -1329,8 +1329,10 @@ void MainInterface::renderDebug() {
SpatialLogger::clear();
m_debugTextRect = RectF::null();
LogMap::clear();
+ SpatialLogger::setObserved(false);
return;
}
+ SpatialLogger::setObserved(true);
if (m_clientCommandProcessor->debugHudEnabled()) {
auto assets = Root::singleton().assets();