fix: update tooltip handling to display caption only when description is empty
This commit is contained in:
parent
a784a68c44
commit
7893338b67
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user