1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 09:05:19 +02:00

Don't append itemname to itemname in tooltip (#8176)

This commit is contained in:
Wuzzy
2019-02-09 15:46:02 +01:00
committed by SmallJoker
parent d5456da69d
commit f5bdc04ab5

View File

@@ -2424,7 +2424,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int layer,
if (!item.name.empty()) { if (!item.name.empty()) {
if (tooltip_text.empty()) if (tooltip_text.empty())
tooltip_text = utf8_to_wide(item.name); tooltip_text = utf8_to_wide(item.name);
if (m_tooltip_append_itemname) else if (m_tooltip_append_itemname)
tooltip_text += utf8_to_wide(" [" + item.name + "]"); tooltip_text += utf8_to_wide(" [" + item.name + "]");
} }
} }