mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-30 23:50:19 -07:00
don't show card p/t and loyalty in CardInfoWidget when showing only the picture
This commit is contained in:
@@ -94,12 +94,12 @@ void CardInfoWidget::minimizeClicked(int newMinimized)
|
||||
|
||||
bool CardInfoWidget::shouldShowPowTough()
|
||||
{
|
||||
return (!info->getPowTough().isEmpty());
|
||||
return (!info->getPowTough().isEmpty() && (minimized != 0));
|
||||
}
|
||||
|
||||
bool CardInfoWidget::shouldShowLoyalty()
|
||||
{
|
||||
return (info->getLoyalty() > 0);
|
||||
return ((info->getLoyalty() > 0) && (minimized != 0));
|
||||
}
|
||||
|
||||
void CardInfoWidget::setMinimized(int _minimized)
|
||||
|
||||
Reference in New Issue
Block a user