From 2a9ab5ea88988d7bf73222bfd7e32497fbe845c6 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Fri, 16 Aug 2024 21:26:21 +0200
Subject: [PATCH] DateTimeEditComponent no longer renders the debug overlay
 unless there is a string to display

---
 es-core/src/components/DateTimeEditComponent.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/es-core/src/components/DateTimeEditComponent.cpp b/es-core/src/components/DateTimeEditComponent.cpp
index a5fc8cc76..34e8c0d4b 100644
--- a/es-core/src/components/DateTimeEditComponent.cpp
+++ b/es-core/src/components/DateTimeEditComponent.cpp
@@ -165,7 +165,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans)
     trans = glm::translate(trans, glm::round(off));
     mRenderer->setMatrix(trans);
 
-    if (Settings::getInstance()->getBool("DebugText")) {
+    if (Settings::getInstance()->getBool("DebugText") && mDateText->getValue() != "") {
         mRenderer->setMatrix(trans);
         mDateText->setDebugRendering(false);
         if (mDateText->getSize().x > 0.0f) {