mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
use isHidden
Otherwise, it doesn't work correctly if the BannerWidget is offscreen
This commit is contained in:
parent
fbbfe4f794
commit
d424e69563
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue