show recipes visually instead of describing them in text
This commit is contained in:
@@ -114,7 +114,7 @@ QPixmap ItemIconCache::getPixmap(const std::string& cacheKey, const std::string&
|
||||
if (withSquare)
|
||||
{
|
||||
// Null unless the item has something to draw -- a square, an icon, or both --
|
||||
// so a caller with nothing to show can fall back to text (REQ-UI-RECIPE-ICON).
|
||||
// so a caller with nothing to show can fall back to text (REQ-UI-ITEM-ICON).
|
||||
const bool hasSquare = m_visuals != nullptr
|
||||
&& m_visuals->items.find(itemId) != m_visuals->items.end();
|
||||
if (hasSquare || hasIcon(itemId))
|
||||
|
||||
Reference in New Issue
Block a user