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:
@@ -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 + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user