Files
dota_factory/src/ui/BuildButtonBar.cpp
Malte Langkabel ab4aef2ad5 ask the icon cache for the inline block icon
The three block-icon call sites each spelled out the same expression that
ItemIconCache::getInlineIcon() now is: the bare icon at the line's text
height, null when the file is missing. They call the helper instead, and
HeaderBar::blockIcon() -- which was that expression and nothing else --
is gone along with its stale "loaded once on first use" comment.

Each site still passes its own widget font, so nothing about the sizing
changes; the rule now lives in one place rather than four.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ne3mejABZoLWKLh8fgpM3x
2026-08-12 10:34:20 +02:00

17 KiB