Skip to content

Commit

Permalink
VideoCard: Hide badge when content is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Feb 9, 2025
1 parent 94f3915 commit 22a3718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiliwili/source/view/video_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ void RecyclingGridItemSeasonSeriesVideoCard::setCard(const std::string& pic, con
this->labelLike->setText(likeCount);
this->badgeTop->setText(badge);

if (badge_color.empty()) {
if (badge_color.empty() || badge.empty()) {
this->boxTop->setVisibility(brls::Visibility::GONE);
} else {
this->boxTop->setVisibility(brls::Visibility::VISIBLE);
Expand Down

0 comments on commit 22a3718

Please sign in to comment.