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

@ -2424,7 +2424,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int layer,
if (!item.name.empty()) {
if (tooltip_text.empty())
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 + "]");
}
}