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

View File

@ -152,7 +152,11 @@ void SlotView::refreshTooltip(const ItemStack& stack, const ItemDef& item) {
);
}
tooltip = captionText + L"\n" + descriptionText;
if (descriptionText.length() > 0) {
tooltip = captionText + L"\n" + descriptionText;
} else {
tooltip = captionText;
}
} else {
tooltip.clear();
}