use isHidden

Otherwise, it doesn't work correctly if the BannerWidget is offscreen
This commit is contained in:
RickyRister 2025-03-02 02:05:42 -08:00
parent fbbfe4f794
commit d424e69563

View file

@ -68,7 +68,7 @@ void BannerWidget::toggleBuddyVisibility() const
void BannerWidget::updateDropdownIconState() const
{
if (clickable) {
bool expanded = buddy && buddy->isVisible();
bool expanded = buddy && !buddy->isHidden();
iconLabel->setPixmap(DropdownIconPixmapGenerator::generatePixmap(24, expanded));
} else {
// we cannot directly hide the iconLabel, since it's needed to center the text; set an empty image instead