fix: update tooltip handling to display caption only when description is empty

This commit is contained in:
GHOST11111100
2025-07-27 00:29:23 +03:00
parent a784a68c44
commit 7893338b67
@@ -152,7 +152,11 @@ void SlotView::refreshTooltip(const ItemStack& stack, const ItemDef& item) {
); );
} }
if (descriptionText.length() > 0) {
tooltip = captionText + L"\n" + descriptionText; tooltip = captionText + L"\n" + descriptionText;
} else {
tooltip = captionText;
}
} else { } else {
tooltip.clear(); tooltip.clear();
} }