Fixed an issue where the text element defaultValue property no longer worked correctly

This commit is contained in:
Leon Styhre 2024-09-04 18:25:54 +02:00
parent 9d64a2feab
commit 904a8f5c5d

View file

@ -392,7 +392,7 @@ void TextComponent::render(const glm::mat4& parentTrans)
void TextComponent::setValue(const std::string& value)
{
if (value == "unknown" && mDefaultValue != "" &&
if (value == _p("theme", "unknown") && mDefaultValue != "" &&
(mThemeMetadata == "developer" || mThemeMetadata == "publisher" ||
mThemeMetadata == "genre" || mThemeMetadata == "players")) {
setText(mDefaultValue);